Skip to content

Commit 562f052

Browse files
committed
C++: Accept test changes.
1 parent bc9cd63 commit 562f052

19 files changed

Lines changed: 22957 additions & 22954 deletions

File tree

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

Lines changed: 474 additions & 474 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,2 @@
1-
| test.cpp:6:10:6:11 | & ... | file://:0:0:0:0 | int | test.cpp:6:11:6:11 | x | true |
2-
| test.cpp:7:10:7:11 | & ... | file://:0:0:0:0 | int | test.cpp:7:11:7:11 | x | true |
3-
| test.cpp:13:10:13:10 | p | file://:0:0:0:0 | int | test.cpp:12:13:12:13 | x | true |
4-
| test.cpp:14:10:14:10 | p | file://:0:0:0:0 | int | test.cpp:12:13:12:13 | x | true |
5-
| test.cpp:19:10:19:10 | q | file://:0:0:0:0 | int | test.cpp:18:12:18:12 | p | false |
6-
| test.cpp:20:10:20:10 | q | file://:0:0:0:0 | int | test.cpp:18:12:18:12 | p | false |
7-
| test.cpp:26:18:26:18 | p | file://:0:0:0:0 | int | test.cpp:25:13:25:13 | x | true |
8-
| test.cpp:31:10:31:10 | x | file://:0:0:0:0 | int | test.cpp:31:10:31:10 | x | true |
9-
| test.cpp:32:10:32:12 | ... + ... | file://:0:0:0:0 | int | test.cpp:32:10:32:10 | x | true |
10-
| test.cpp:33:10:33:10 | x | file://:0:0:0:0 | int | test.cpp:33:10:33:10 | x | true |
11-
| test.cpp:39:10:39:10 | p | file://:0:0:0:0 | int | test.cpp:38:12:38:12 | x | true |
12-
| test.cpp:40:10:40:12 | ... - ... | file://:0:0:0:0 | int | test.cpp:38:12:38:12 | x | true |
13-
| test.cpp:41:10:41:10 | p | file://:0:0:0:0 | int | test.cpp:38:12:38:12 | x | true |
14-
| test.cpp:47:10:47:10 | p | file://:0:0:0:0 | int | test.cpp:46:13:46:13 | x | true |
15-
| test.cpp:48:10:48:10 | p | file://:0:0:0:0 | int | test.cpp:46:13:46:13 | x | true |
16-
| test.cpp:54:10:54:10 | p | file://:0:0:0:0 | int | test.cpp:53:13:53:13 | x | true |
17-
| test.cpp:59:10:59:10 | q | file://:0:0:0:0 | int | test.cpp:58:12:58:12 | p | false |
18-
| test.cpp:60:10:60:12 | ... + ... | file://:0:0:0:0 | int | test.cpp:58:12:58:12 | p | false |
19-
| test.cpp:61:10:61:10 | q | file://:0:0:0:0 | int | test.cpp:58:12:58:12 | p | false |
20-
| test.cpp:66:18:66:18 | x | file://:0:0:0:0 | int | test.cpp:66:18:66:18 | x | true |
21-
| test.cpp:67:18:67:20 | ... - ... | file://:0:0:0:0 | int | test.cpp:67:18:67:18 | x | true |
22-
| test.cpp:78:10:78:20 | & ... | file://:0:0:0:0 | int | test.cpp:78:11:78:11 | x | true |
23-
| test.cpp:79:10:79:20 | & ... | file://:0:0:0:0 | int | test.cpp:79:11:79:11 | x | true |
24-
| test.cpp:82:10:82:25 | & ... | file://:0:0:0:0 | int | test.cpp:81:24:81:24 | x | true |
25-
| test.cpp:83:10:83:25 | & ... | file://:0:0:0:0 | int | test.cpp:81:24:81:24 | x | true |
26-
| test.cpp:87:10:87:17 | & ... | file://:0:0:0:0 | int | test.cpp:87:11:87:11 | x | false |
27-
| test.cpp:88:10:88:17 | & ... | file://:0:0:0:0 | int | test.cpp:88:11:88:11 | x | false |
28-
| test.cpp:93:18:93:21 | access to array | file://:0:0:0:0 | int[5] | test.cpp:93:18:93:18 | x | true |
29-
| test.cpp:98:10:98:10 | x | file://:0:0:0:0 | int[4][5] | test.cpp:98:10:98:10 | x | true |
1+
ERROR: Could not resolve module semmle.code.cpp.dataflow.old.StackAddress (StackPointerFlowsToUse.ql:2,8-49)
2+
ERROR: Could not resolve predicate stackPointerFlowsToUse/4 (StackPointerFlowsToUse.ql:7,3-25)

cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.expected

Lines changed: 22177 additions & 22177 deletions
Large diffs are not rendered by default.

cpp/ql/test/library-tests/syntax-zoo/dataflow-ir-consistency.expected

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,16 @@ uniqueNodeToString
564564
| break_labels.c:2:11:2:11 | x | Node should have one toString but has 2. |
565565
| break_labels.c:2:11:2:11 | x | Node should have one toString but has 2. |
566566
| break_labels.c:4:9:4:9 | i | Node should have one toString but has 2. |
567+
| break_labels.c:4:9:4:9 | i | Node should have one toString but has 2. |
568+
| break_labels.c:4:9:4:9 | x | Node should have one toString but has 2. |
567569
| break_labels.c:4:9:4:9 | x | Node should have one toString but has 2. |
568570
| break_labels.c:6:16:6:16 | i | Node should have one toString but has 2. |
571+
| break_labels.c:6:16:6:16 | i | Node should have one toString but has 2. |
572+
| break_labels.c:6:16:6:16 | x | Node should have one toString but has 2. |
569573
| break_labels.c:6:16:6:16 | x | Node should have one toString but has 2. |
570574
| break_labels.c:7:17:7:17 | i | Node should have one toString but has 2. |
575+
| break_labels.c:7:17:7:17 | i | Node should have one toString but has 2. |
576+
| break_labels.c:7:17:7:17 | x | Node should have one toString but has 2. |
571577
| break_labels.c:7:17:7:17 | x | Node should have one toString but has 2. |
572578
| constructorinitializer.cpp:3:9:3:9 | i | Node should have one toString but has 2. |
573579
| constructorinitializer.cpp:3:9:3:9 | x | Node should have one toString but has 2. |
@@ -578,9 +584,13 @@ uniqueNodeToString
578584
| duff.c:2:12:2:12 | x | Node should have one toString but has 2. |
579585
| duff.c:2:12:2:12 | x | Node should have one toString but has 2. |
580586
| duff.c:3:14:3:14 | i | Node should have one toString but has 2. |
587+
| duff.c:3:14:3:14 | i | Node should have one toString but has 2. |
581588
| duff.c:3:14:3:14 | x | Node should have one toString but has 2. |
589+
| duff.c:3:14:3:14 | x | Node should have one toString but has 2. |
590+
| duff.c:4:13:4:13 | i | Node should have one toString but has 2. |
582591
| duff.c:4:13:4:13 | i | Node should have one toString but has 2. |
583592
| duff.c:4:13:4:13 | x | Node should have one toString but has 2. |
593+
| duff.c:4:13:4:13 | x | Node should have one toString but has 2. |
584594
| newexpr.cpp:3:9:3:9 | i | Node should have one toString but has 2. |
585595
| newexpr.cpp:3:9:3:9 | x | Node should have one toString but has 2. |
586596
| newexpr.cpp:3:16:3:16 | j | Node should have one toString but has 2. |
@@ -590,12 +600,16 @@ uniqueNodeToString
590600
| nodefaultswitchstmt.c:1:12:1:12 | x | Node should have one toString but has 2. |
591601
| nodefaultswitchstmt.c:1:12:1:12 | x | Node should have one toString but has 2. |
592602
| nodefaultswitchstmt.c:2:14:2:14 | i | Node should have one toString but has 2. |
603+
| nodefaultswitchstmt.c:2:14:2:14 | i | Node should have one toString but has 2. |
604+
| nodefaultswitchstmt.c:2:14:2:14 | x | Node should have one toString but has 2. |
593605
| nodefaultswitchstmt.c:2:14:2:14 | x | Node should have one toString but has 2. |
594606
| switchstmt.c:1:12:1:12 | i | Node should have one toString but has 2. |
595607
| switchstmt.c:1:12:1:12 | i | Node should have one toString but has 2. |
596608
| switchstmt.c:1:12:1:12 | x | Node should have one toString but has 2. |
597609
| switchstmt.c:1:12:1:12 | x | Node should have one toString but has 2. |
598610
| switchstmt.c:2:14:2:14 | i | Node should have one toString but has 2. |
611+
| switchstmt.c:2:14:2:14 | i | Node should have one toString but has 2. |
612+
| switchstmt.c:2:14:2:14 | x | Node should have one toString but has 2. |
599613
| switchstmt.c:2:14:2:14 | x | Node should have one toString but has 2. |
600614
missingToString
601615
parameterCallable
@@ -626,7 +640,7 @@ uniquePostUpdate
626640
postIsInSameCallable
627641
reverseRead
628642
| cpp11.cpp:82:17:82:17 | Unary | Origin of readStep is missing a PostUpdateNode. |
629-
| cpp11.cpp:82:17:82:55 | Unary | Origin of readStep is missing a PostUpdateNode. |
643+
| cpp11.cpp:82:17:82:55 | [...](...){...} | Origin of readStep is missing a PostUpdateNode. |
630644
| ir.cpp:514:10:514:11 | Unary | Origin of readStep is missing a PostUpdateNode. |
631645
| ir.cpp:515:10:515:11 | Unary | Origin of readStep is missing a PostUpdateNode. |
632646
| ir.cpp:515:10:515:11 | Unary | Origin of readStep is missing a PostUpdateNode. |

0 commit comments

Comments
 (0)