class AdLint::Exam::CBuiltin::W0948
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 20375 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_constant_specifier += T(:check) end
Private Instance Methods
check(const_spec)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 20382 def check(const_spec) if const_spec.character? && !const_spec.constant.replaced? W(const_spec.location, const_spec.constant.value) end end