class AdLint::Exam::CBuiltin::W0733
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 17811 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_logical_or_expression += T(:check) end
Private Instance Methods
check(expr)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 17818 def check(expr) if expr.lhs_operand.arithmetic? || expr.lhs_operand.bitwise? if expr.rhs_operand.arithmetic? || expr.rhs_operand.bitwise? W(expr.location) end end end