class AdLint::Exam::CBuiltin::W1064
Private Instance Methods
check(case_stmt, ctrlexpr_var)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 21444 def check(case_stmt, ctrlexpr_var) unless switch_ctrlexpr_var = @switch_ctrlexpr_stack.last return end return unless switch_ctrlexpr_var.type.enum? W(case_stmt.expression.location) unless ctrlexpr_var.type.enum? end