class AdLint::Exam::CBuiltin::W0830
Public Class Methods
new(phase_ctxt)
click to toggle source
Calls superclass method
AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 20211 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_enum_specifier += T(:check) end
Private Instance Methods
check(enum_spec)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 20218 def check(enum_spec) if extra_comma = enum_spec.trailing_comma W(extra_comma.location) end end