mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: Accept test changes.
This commit is contained in:
@@ -4,6 +4,14 @@ uniqueType
|
||||
uniqueNodeLocation
|
||||
missingLocation
|
||||
uniqueNodeToString
|
||||
| test.cpp:632:6:632:24 | Use of x indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:632:6:632:24 | Use of x#init indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:637:6:637:24 | Use of x indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:637:6:637:24 | Use of x#init indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:663:6:663:24 | Use of s indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:663:6:663:24 | Use of s#init indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:669:6:669:24 | Use of s indirection | Node should have one toString but has 2. |
|
||||
| test.cpp:669:6:669:24 | Use of s#init indirection | Node should have one toString but has 2. |
|
||||
missingToString
|
||||
parameterCallable
|
||||
localFlowIsLocal
|
||||
|
||||
@@ -642,7 +642,7 @@ void test_static_local_2() {
|
||||
|
||||
void test_static_local_3() {
|
||||
static int x = 0;
|
||||
sink(x); // $ MISSING: ast, ir
|
||||
sink(x); // $ ir MISSING: ast
|
||||
x = source();
|
||||
}
|
||||
|
||||
@@ -655,7 +655,7 @@ void test_static_local_4() {
|
||||
|
||||
void test_static_local_5() {
|
||||
static int x = 0;
|
||||
sink(x); // $ MISSING: ast,ir
|
||||
sink(x); // $ ir MISSING: ast
|
||||
x = 0;
|
||||
x = source();
|
||||
}
|
||||
@@ -663,7 +663,7 @@ void test_static_local_5() {
|
||||
void test_static_local_6() {
|
||||
static int s = source();
|
||||
static int* ptr_to_s = &s;
|
||||
sink(*ptr_to_s); // $ MISSING: ast,ir
|
||||
sink(*ptr_to_s); // $ ir MISSING: ast
|
||||
}
|
||||
|
||||
void test_static_local_7() {
|
||||
@@ -676,7 +676,7 @@ void test_static_local_7() {
|
||||
void test_static_local_8() {
|
||||
static int s;
|
||||
static int* ptr_to_s = &s;
|
||||
sink(*ptr_to_s); // $ MISSING: ast,ir
|
||||
sink(*ptr_to_s); // $ ir MISSING: ast
|
||||
|
||||
s = source();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user