class AdLint::Exam::CBuiltin::W0064
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 1489 def initialize(phase_ctxt) super interp = phase_ctxt[:cc1_interpreter] interp.on_constant_referred += T(:check) end
Private Instance Methods
check(const_spec, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 1496 def check(const_spec, *) W(const_spec.location) if const_spec.constant.value =~ /\A0b/ end