class AdLint::Exam::CBuiltin::W0626
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 14713 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_constant_specifier += T(:check_constant) trav.enter_string_literal_specifier += T(:check_string_literal) end
Private Instance Methods
check_constant(node)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 14721 def check_constant(node) W(node.location) if node.prefix =~ /\AL\z/i end
check_string_literal(node)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 14725 def check_string_literal(node) W(node.location) if node.prefix =~ /\AL\z/i end