Skip to content

Commit 48e7aa8

Browse files
committed
Fix perofmance inappropriate-bitwise-or-shift-operands
1 parent b03547b commit 48e7aa8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp/misra/src/rules/RULE-7-0-4/InappropriateBitwiseOrShiftOperands.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ predicate isConstantExpression(Expr e) {
2222
e.isConstant()
2323
}
2424

25+
bindingset[right, leftType]
26+
pragma[inline_late]
2527
predicate isValidShiftConstantRange(Expr right, Type leftType) {
2628
exists(int value |
2729
value = right.getValue().toInt() and

0 commit comments

Comments
 (0)