class AdLint::Exam::CBuiltin::W0586
Public Class Methods
new(phase_ctxt)
click to toggle source
Calls superclass method
AdLint::Examination::new
# File lib/adlint/exam/c_builtin/ld_check.rb, line 60 def initialize(phase_ctxt) super phase_ctxt[:ld_typedef_traversal].on_declaration += T(:check) @map = phase_ctxt[:ld_typedef_map] end
Private Instance Methods
check(typedef)
click to toggle source
# File lib/adlint/exam/c_builtin/ld_check.rb, line 67 def check(typedef) if @map.lookup(typedef.name).any? { |td| td != typedef } W(typedef.location, typedef.name) end end