Skip to content

Commit 9153f56

Browse files
committed
C++: Accept test results with location fixes
1 parent 6eaf64c commit 9153f56

File tree

28 files changed

+890
-923
lines changed

28 files changed

+890
-923
lines changed

cpp/ql/test/examples/expressions/PrintAST.expected

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -430,28 +430,28 @@ DynamicCast.cpp:
430430
#-----| Conversion = [BaseClassConversion] base class conversion
431431
#-----| Type = [PointerType] Base *
432432
#-----| ValueCategory = prvalue
433-
#-----| expr: [ThisExpr] this
434-
#-----| Type = [PointerType] Derived *
435-
#-----| ValueCategory = prvalue(load)
433+
# 4| expr: [ThisExpr] this
434+
# 4| Type = [PointerType] Derived *
435+
# 4| ValueCategory = prvalue(load)
436436
#-----| 0: [ReferenceToExpr] (reference to)
437437
#-----| Type = [LValueReferenceType] const Base &
438438
#-----| ValueCategory = prvalue
439-
#-----| expr: [PointerDereferenceExpr] * ...
440-
#-----| Type = [SpecifiedType] const Base
441-
#-----| ValueCategory = lvalue
439+
# 4| expr: [PointerDereferenceExpr] * ...
440+
# 4| Type = [SpecifiedType] const Base
441+
# 4| ValueCategory = lvalue
442442
#-----| 0: [CStyleCast] (const Base *)...
443443
#-----| Conversion = [BaseClassConversion] base class conversion
444444
#-----| Type = [PointerType] const Base *
445445
#-----| ValueCategory = prvalue
446-
#-----| expr: [AddressOfExpr] & ...
447-
#-----| Type = [PointerType] const Derived *
448-
#-----| ValueCategory = prvalue
446+
# 4| expr: [AddressOfExpr] & ...
447+
# 4| Type = [PointerType] const Derived *
448+
# 4| ValueCategory = prvalue
449449
#-----| 0: [ReferenceDereferenceExpr] (reference dereference)
450450
#-----| Type = [SpecifiedType] const Derived
451451
#-----| ValueCategory = lvalue
452-
#-----| expr: [VariableAccess] p#0
453-
#-----| Type = [LValueReferenceType] const Derived &
454-
#-----| ValueCategory = prvalue(load)
452+
# 4| expr: [VariableAccess] p#0
453+
# 4| Type = [LValueReferenceType] const Derived &
454+
# 4| ValueCategory = prvalue(load)
455455
#-----| 1: [ReturnStmt] return ...
456456
#-----| 0: [ReferenceToExpr] (reference to)
457457
#-----| Type = [LValueReferenceType] Derived &
@@ -1248,9 +1248,9 @@ union_etc.cpp:
12481248
# 6| 0: [PointerFieldAccess] x
12491249
# 6| Type = [IntType] int
12501250
# 6| ValueCategory = lvalue
1251-
#-----| -1: [ThisExpr] this
1252-
#-----| Type = [PointerType] S *
1253-
#-----| ValueCategory = prvalue(load)
1251+
# 6| -1: [ThisExpr] this
1252+
# 6| Type = [PointerType] S *
1253+
# 6| ValueCategory = prvalue(load)
12541254
# 6| 1: [VariableAccess] val
12551255
# 6| Type = [IntType] int
12561256
# 6| ValueCategory = prvalue(load)
@@ -1431,9 +1431,9 @@ union_etc.cpp:
14311431
# 33| 0: [PointerFieldAccess] q
14321432
# 33| Type = [IntType] int
14331433
# 33| ValueCategory = lvalue
1434-
#-----| -1: [ThisExpr] this
1435-
#-----| Type = [PointerType] T *
1436-
#-----| ValueCategory = prvalue(load)
1434+
# 33| -1: [ThisExpr] this
1435+
# 33| Type = [PointerType] T *
1436+
# 33| ValueCategory = prvalue(load)
14371437
# 33| 1: [VariableAccess] val
14381438
# 33| Type = [IntType] int
14391439
# 33| ValueCategory = prvalue(load)

cpp/ql/test/library-tests/blocks/cpp/exprs.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
| blocks.cpp:57:12:57:32 | call to expression |
8080
| blocks.cpp:57:14:57:30 | ^ { ... } |
8181
| blocks.cpp:57:23:57:26 | four |
82-
| file://:0:0:0:0 | this |
82+
| blocks.cpp:57:23:57:26 | this |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
| edg.c:12:14:12:51 | (int)... | 0 | 0 |
22
| edg.c:12:14:12:51 | __builtin_offsetof | 1 | 1 |
3+
| edg.c:12:14:12:51 | mystruct | 0 | 0 |
4+
| edg.c:12:49:12:50 | 0 | 0 | 0 |
5+
| edg.c:12:49:12:50 | * ... | 0 | 0 |
36
| edg.c:12:49:12:50 | f2 | 0 | 0 |
47
| edg.c:13:14:13:45 | 0 | 0 | 0 |
58
| edg.c:13:14:13:45 | & ... | 0 | 0 |
@@ -10,6 +13,3 @@
1013
| edg.c:13:14:13:45 | (size_t)... | 0 | 0 |
1114
| edg.c:13:14:13:45 | __INTADDR__ | 1 | 1 |
1215
| edg.c:13:43:13:44 | f2 | 0 | 0 |
13-
| file://:0:0:0:0 | 0 | 0 | 0 |
14-
| file://:0:0:0:0 | * ... | 0 | 0 |
15-
| file://:0:0:0:0 | mystruct | 0 | 0 |

0 commit comments

Comments
 (0)