File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,11 @@ static bool isConvertedToBool(const Token* tok)
9090// ---------------------------------------------------------------------------
9191void CheckBool::checkBitwiseOnBoolean ()
9292{
93- if (!mSettings ->severity .isEnabled (Severity::style))
94- return ;
95-
96- // danmar: this is inconclusive because I don't like that there are
97- // warnings for calculations. Example: set_flag(a & b);
98- if (!mSettings ->certainty .isEnabled (Certainty::inconclusive))
93+ if (!mSettings ->isPremiumEnabled (" bitwiseOnBoolean" ) &&
94+ !mSettings ->severity .isEnabled (Severity::style) &&
95+ // danmar: this is inconclusive because I don't like that there are
96+ // warnings for calculations. Example: set_flag(a & b);
97+ !mSettings ->certainty .isEnabled (Certainty::inconclusive))
9998 return ;
10099
101100 logChecker (" CheckBool::checkBitwiseOnBoolean" ); // style,inconclusive
You can’t perform that action at this time.
0 commit comments