class AdLint::Exam::CBuiltin::W0833

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 20232
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 20239
def check(const_spec, *)
  if const_spec.constant.value =~ /LL/i
    W(const_spec.location)
  end
end