class AdLint::Exam::CBuiltin::W0691

Public Class Methods

new(phase_ctxt) click to toggle source
Calls superclass method AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1242
def initialize(phase_ctxt)
  super
  macro_table = phase_ctxt[:cpp_macro_table]
  macro_table.on_sharpsharp_operator_evaled += T(:check)
end

Private Instance Methods

check(*, new_toks) click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1249
def check(*, new_toks)
  W(new_toks.first.location) if new_toks.size > 1
end