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 6
6
| test.cpp:39:23:39:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
7
7
| test.cpp:42:23:42:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
8
8
| 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. |
10
9
| test.cpp:72:3:72:8 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
11
10
| 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*);
68
68
#define ID (X ) (X)
69
69
70
70
void test_inside_macro_expansion (int x, int y) {
71
- DOES_NOT_THROW (x == y); // GOOD [FALSE POSITIVE]
71
+ DOES_NOT_THROW (x == y); // GOOD
72
72
x == y; // BAD
73
73
x == ID (y); // BAD
74
74
}
You can’t perform that action at this time.
0 commit comments