Skip to content

Commit 1b45c5f

Browse files
committed
C++: Accept test changes.
1 parent 9de8d5c commit 1b45c5f

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ void following_pointers(
4848

4949
int stackArray[2] = { source(), source() };
5050
stackArray[0] = source();
51-
sink(stackArray); // $ ast ir ir=49:35 ir=50:19
51+
sink(stackArray); // $ ast ir
5252
}

cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,12 @@ void test_set_through_const_pointer(int *e)
533533
}
534534

535535
void sink_then_source_1(int* p) {
536-
sink(*p); // $ SPURIOUS: ir=537:10 ir=547:9
536+
sink(*p); // $ ir // Flow from the unitialized x to the dereference.
537537
*p = source();
538538
}
539539

540540
void sink_then_source_2(int* p, int y) {
541-
sink(y); // $ SPURIOUS: ast ir=542:10 ir=551:9
541+
sink(y); // $ SPURIOUS: ast ir
542542
*p = source();
543543
}
544544

cpp/ql/test/library-tests/dataflow/fields/ir-path-flow.expected

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ edges
1313
| A.cpp:31:20:31:20 | c | A.cpp:31:14:31:21 | call to B [c] |
1414
| A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection |
1515
| A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection |
16-
| A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection |
17-
| A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection |
1816
| A.cpp:47:12:47:18 | new | A.cpp:48:20:48:20 | c |
1917
| A.cpp:48:12:48:18 | call to make indirection [c] | A.cpp:49:10:49:10 | b indirection [c] |
2018
| A.cpp:48:20:48:20 | c | A.cpp:29:23:29:23 | c |
@@ -907,7 +905,6 @@ nodes
907905
| A.cpp:41:15:41:21 | new | semmle.label | new |
908906
| A.cpp:41:15:41:21 | new | semmle.label | new |
909907
| A.cpp:43:10:43:12 | & ... indirection | semmle.label | & ... indirection |
910-
| A.cpp:43:10:43:12 | & ... indirection | semmle.label | & ... indirection |
911908
| A.cpp:47:12:47:18 | new | semmle.label | new |
912909
| A.cpp:48:12:48:18 | call to make indirection [c] | semmle.label | call to make indirection [c] |
913910
| A.cpp:48:20:48:20 | c | semmle.label | c |
@@ -1765,8 +1762,6 @@ subpaths
17651762
#select
17661763
| A.cpp:43:10:43:12 | & ... indirection | A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection | & ... indirection flows from $@ | A.cpp:41:15:41:21 | new | new |
17671764
| A.cpp:43:10:43:12 | & ... indirection | A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection | & ... indirection flows from $@ | A.cpp:41:15:41:21 | new | new |
1768-
| A.cpp:43:10:43:12 | & ... indirection | A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection | & ... indirection flows from $@ | A.cpp:41:15:41:21 | new | new |
1769-
| A.cpp:43:10:43:12 | & ... indirection | A.cpp:41:15:41:21 | new | A.cpp:43:10:43:12 | & ... indirection | & ... indirection flows from $@ | A.cpp:41:15:41:21 | new | new |
17701765
| A.cpp:49:10:49:13 | c | A.cpp:47:12:47:18 | new | A.cpp:49:10:49:13 | c | c flows from $@ | A.cpp:47:12:47:18 | new | new |
17711766
| A.cpp:49:13:49:13 | c | A.cpp:47:12:47:18 | new | A.cpp:49:13:49:13 | c | c flows from $@ | A.cpp:47:12:47:18 | new | new |
17721767
| A.cpp:56:10:56:17 | call to get | A.cpp:55:12:55:19 | new | A.cpp:56:10:56:17 | call to get | call to get flows from $@ | A.cpp:55:12:55:19 | new | new |

0 commit comments

Comments
 (0)