class AdLint::Exam::CBuiltin::W0947

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 20356
def initialize(phase_ctxt)
  super
  trav = phase_ctxt[:cc1_ast_traversal]
  trav.enter_string_literal_specifier += T(:check)
end

Private Instance Methods

check(str_lit_spec) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 20363
def check(str_lit_spec)
  W(str_lit_spec.location) unless str_lit_spec.literal.replaced?
end