Skip to content

Commit cb2f7b0

Browse files
committed
C++: Exclude results in macro expansions from 'cpp/compare-where-assign-meant'.
1 parent 759f939 commit cb2f7b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Likely Bugs/Likely Typos/CompareWhereAssignMeant.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import cpp
1616
from ExprInVoidContext op
1717
where
1818
not op.isUnevaluated() and
19+
not inMacroExpansion(op) and
1920
(
2021
op instanceof EQExpr
2122
or

0 commit comments

Comments
 (0)