class AdLint::Exam::CBuiltin::W0081
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 1842 def initialize(phase_ctxt) super @interp = phase_ctxt[:cc1_interpreter] @interp.on_unary_arithmetic_expr_evaled += T(:check) end
Private Instance Methods
check(expr, ope_var, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 1849 def check(expr, ope_var, *) if expr.operator.type == "-" if ope_var.type.same_as?(unsigned_int_t) || ope_var.type.same_as?(unsigned_long_t) || ope_var.type.same_as?(unsigned_long_long_t) W(expr.location) end end end
interpreter()
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 1859 def interpreter @interp end