File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
cpp/ql/test/query-tests/Likely Bugs/Likely Typos/CompareWhereAssignMeant Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 66| test.cpp:39:23:39:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
77| test.cpp:42:23:42:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
88| test.cpp:51:13:51:13 | call to operator== | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
9- | test.cpp:71:18:71:23 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
109| test.cpp:72:3:72:8 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
1110| test.cpp:73:3:73:12 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void report_error(const char*);
6868#define ID (X ) (X)
6969
7070void test_inside_macro_expansion (int x, int y) {
71- DOES_NOT_THROW (x == y); // GOOD [FALSE POSITIVE]
71+ DOES_NOT_THROW (x == y); // GOOD
7272 x == y; // BAD
7373 x == ID (y); // BAD
7474}
You can’t perform that action at this time.
0 commit comments