mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
C++: Accept test changes.
This commit is contained in:
@@ -6,6 +6,5 @@
|
||||
| test.cpp:39:23:39:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
| test.cpp:42:23:42:28 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
| test.cpp:51:13:51:13 | call to operator== | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
| test.cpp:71:18:71:23 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
| test.cpp:72:3:72:8 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
| test.cpp:73:3:73:12 | ... == ... | This '==' operator has no effect. The assignment ('=') operator was probably intended. |
|
||||
|
||||
@@ -68,7 +68,7 @@ void report_error(const char*);
|
||||
#define ID(X) (X)
|
||||
|
||||
void test_inside_macro_expansion(int x, int y) {
|
||||
DOES_NOT_THROW(x == y); // GOOD [FALSE POSITIVE]
|
||||
DOES_NOT_THROW(x == y); // GOOD
|
||||
x == y; // BAD
|
||||
x == ID(y); // BAD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user