mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
C++: Accept test changes.
This commit is contained in:
@@ -4,6 +4,14 @@ uniqueType
|
|||||||
uniqueNodeLocation
|
uniqueNodeLocation
|
||||||
missingLocation
|
missingLocation
|
||||||
uniqueNodeToString
|
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
|
missingToString
|
||||||
parameterCallable
|
parameterCallable
|
||||||
localFlowIsLocal
|
localFlowIsLocal
|
||||||
|
|||||||
@@ -642,7 +642,7 @@ void test_static_local_2() {
|
|||||||
|
|
||||||
void test_static_local_3() {
|
void test_static_local_3() {
|
||||||
static int x = 0;
|
static int x = 0;
|
||||||
sink(x); // $ MISSING: ast, ir
|
sink(x); // $ ir MISSING: ast
|
||||||
x = source();
|
x = source();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -655,7 +655,7 @@ void test_static_local_4() {
|
|||||||
|
|
||||||
void test_static_local_5() {
|
void test_static_local_5() {
|
||||||
static int x = 0;
|
static int x = 0;
|
||||||
sink(x); // $ MISSING: ast,ir
|
sink(x); // $ ir MISSING: ast
|
||||||
x = 0;
|
x = 0;
|
||||||
x = source();
|
x = source();
|
||||||
}
|
}
|
||||||
@@ -663,7 +663,7 @@ void test_static_local_5() {
|
|||||||
void test_static_local_6() {
|
void test_static_local_6() {
|
||||||
static int s = source();
|
static int s = source();
|
||||||
static int* ptr_to_s = &s;
|
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() {
|
void test_static_local_7() {
|
||||||
@@ -676,7 +676,7 @@ void test_static_local_7() {
|
|||||||
void test_static_local_8() {
|
void test_static_local_8() {
|
||||||
static int s;
|
static int s;
|
||||||
static int* ptr_to_s = &s;
|
static int* ptr_to_s = &s;
|
||||||
sink(*ptr_to_s); // $ MISSING: ast,ir
|
sink(*ptr_to_s); // $ ir MISSING: ast
|
||||||
|
|
||||||
s = source();
|
s = source();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user