|
@@ -5720,6 +5720,9 @@ def warn_precedence_conditional : Warning<
|
|
def note_precedence_conditional_first : Note<
|
|
def note_precedence_conditional_first : Note<
|
|
"place parentheses around the '?:' expression to evaluate it first">;
|
|
"place parentheses around the '?:' expression to evaluate it first">;
|
|
|
|
|
|
|
|
+def warn_enum_constant_in_bool_context : Warning<
|
|
|
|
+ "converting the enum constant to a boolean">,
|
|
|
|
+ InGroup<IntInBoolContext>;
|
|
def warn_left_shift_in_bool_context : Warning<
|
|
def warn_left_shift_in_bool_context : Warning<
|
|
"converting the result of '<<' to a boolean; did you mean '(%0) != 0'?">,
|
|
"converting the result of '<<' to a boolean; did you mean '(%0) != 0'?">,
|
|
InGroup<IntInBoolContext>;
|
|
InGroup<IntInBoolContext>;
|
|
@@ -6156,6 +6159,10 @@ def warn_comparison_of_mixed_enum_types : Warning<
|
|
"comparison of two values with different enumeration types"
|
|
"comparison of two values with different enumeration types"
|
|
"%diff{ ($ and $)|}0,1">,
|
|
"%diff{ ($ and $)|}0,1">,
|
|
InGroup<EnumCompare>;
|
|
InGroup<EnumCompare>;
|
|
|
|
+def warn_conditional_mixed_enum_types : Warning<
|
|
|
|
+ "enumeration type mismatch in conditional expression"
|
|
|
|
+ "%diff{ ($ and $)|}0,1">,
|
|
|
|
+ InGroup<EnumCompare>;
|
|
def warn_comparison_of_mixed_enum_types_switch : Warning<
|
|
def warn_comparison_of_mixed_enum_types_switch : Warning<
|
|
"comparison of two values with different enumeration types in switch statement"
|
|
"comparison of two values with different enumeration types in switch statement"
|
|
"%diff{ ($ and $)|}0,1">,
|
|
"%diff{ ($ and $)|}0,1">,
|