Skip to content

Commit 9ff38eb

Browse files
author
Matthew Gretton-Dann
committed
C++: Update tests for new CTypedefType.
1 parent 5468b8d commit 9ff38eb

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ Varargs.c:
917917
# 8| body: [Block] { ... }
918918
# 9| 0: [DeclStmt] declaration
919919
# 9| 0: [VariableDeclarationEntry] definition of args
920-
# 9| Type = [TypedefType] va_list
920+
# 9| Type = [CTypedefType] va_list
921921
# 10| 1: [ExprStmt] ExprStmt
922922
# 10| 0: [BuiltInVarArgsStart] __builtin_va_start
923923
# 10| Type = [VoidType] void
@@ -926,7 +926,7 @@ Varargs.c:
926926
# 10| Type = [PointerType] __va_list_tag *
927927
# 10| ValueCategory = prvalue
928928
# 10| expr: [VariableAccess] args
929-
# 10| Type = [TypedefType] va_list
929+
# 10| Type = [CTypedefType] va_list
930930
# 10| ValueCategory = lvalue
931931
# 10| 1: [VariableAccess] text
932932
# 10| Type = [PointerType] const char *
@@ -939,7 +939,7 @@ Varargs.c:
939939
# 11| Type = [PointerType] __va_list_tag *
940940
# 11| ValueCategory = prvalue
941941
# 11| expr: [VariableAccess] args
942-
# 11| Type = [TypedefType] va_list
942+
# 11| Type = [CTypedefType] va_list
943943
# 11| ValueCategory = lvalue
944944
# 12| 3: [ReturnStmt] return ...
945945
macro_etc.c:

cpp/ql/test/library-tests/ir/ir/PrintAST.expected

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,15 +3672,15 @@ ir.cpp:
36723672
# 560| [TopLevelFunction] int EnumSwitch(E)
36733673
# 560| params:
36743674
# 560| 0: [Parameter] e
3675-
# 560| Type = [TypedefType] E
3675+
# 560| Type = [CTypedefType] E
36763676
# 560| body: [Block] { ... }
36773677
# 561| 0: [SwitchStmt] switch (...) ...
36783678
# 561| 0: [CStyleCast] (int)...
36793679
# 561| Conversion = [IntegralConversion] integral conversion
36803680
# 561| Type = [IntType] int
36813681
# 561| ValueCategory = prvalue
36823682
# 561| expr: [VariableAccess] e
3683-
# 561| Type = [TypedefType] E
3683+
# 561| Type = [CTypedefType] E
36843684
# 561| ValueCategory = prvalue(load)
36853685
# 561| 1: [Block] { ... }
36863686
# 562| 0: [SwitchCase] case ...:
@@ -6191,27 +6191,27 @@ ir.cpp:
61916191
# 915| [Operator,TopLevelFunction] void* operator new(size_t, float)
61926192
# 915| params:
61936193
# 915| 0: [Parameter] p#0
6194-
# 915| Type = [Size_t,TypedefType] size_t
6194+
# 915| Type = [CTypedefType,Size_t] size_t
61956195
# 915| 1: [Parameter] p#1
61966196
# 915| Type = [FloatType] float
61976197
# 916| [Operator,TopLevelFunction] void* operator new[](size_t, float)
61986198
# 916| params:
61996199
# 916| 0: [Parameter] p#0
6200-
# 916| Type = [Size_t,TypedefType] size_t
6200+
# 916| Type = [CTypedefType,Size_t] size_t
62016201
# 916| 1: [Parameter] p#1
62026202
# 916| Type = [FloatType] float
62036203
# 917| [Operator,TopLevelFunction] void* operator new(size_t, std::align_val_t, float)
62046204
# 917| params:
62056205
# 917| 0: [Parameter] p#0
6206-
# 917| Type = [Size_t,TypedefType] size_t
6206+
# 917| Type = [CTypedefType,Size_t] size_t
62076207
# 917| 1: [Parameter] p#1
62086208
# 917| Type = [ScopedEnum] align_val_t
62096209
# 917| 2: [Parameter] p#2
62106210
# 917| Type = [FloatType] float
62116211
# 918| [Operator,TopLevelFunction] void* operator new[](size_t, std::align_val_t, float)
62126212
# 918| params:
62136213
# 918| 0: [Parameter] p#0
6214-
# 918| Type = [Size_t,TypedefType] size_t
6214+
# 918| Type = [CTypedefType,Size_t] size_t
62156215
# 918| 1: [Parameter] p#1
62166216
# 918| Type = [ScopedEnum] align_val_t
62176217
# 918| 2: [Parameter] p#2
@@ -6255,23 +6255,23 @@ ir.cpp:
62556255
# 926| [MemberFunction] void* SizedDealloc::operator new(size_t)
62566256
# 926| params:
62576257
# 926| 0: [Parameter] p#0
6258-
# 926| Type = [Size_t,TypedefType] size_t
6258+
# 926| Type = [CTypedefType,Size_t] size_t
62596259
# 927| [MemberFunction] void* SizedDealloc::operator new[](size_t)
62606260
# 927| params:
62616261
# 927| 0: [Parameter] p#0
6262-
# 927| Type = [Size_t,TypedefType] size_t
6262+
# 927| Type = [CTypedefType,Size_t] size_t
62636263
# 928| [MemberFunction] void SizedDealloc::operator delete(void*, size_t)
62646264
# 928| params:
62656265
# 928| 0: [Parameter] p#0
62666266
# 928| Type = [VoidPointerType] void *
62676267
# 928| 1: [Parameter] p#1
6268-
# 928| Type = [Size_t,TypedefType] size_t
6268+
# 928| Type = [CTypedefType,Size_t] size_t
62696269
# 929| [MemberFunction] void SizedDealloc::operator delete[](void*, size_t)
62706270
# 929| params:
62716271
# 929| 0: [Parameter] p#0
62726272
# 929| Type = [VoidPointerType] void *
62736273
# 929| 1: [Parameter] p#1
6274-
# 929| Type = [Size_t,TypedefType] size_t
6274+
# 929| Type = [CTypedefType,Size_t] size_t
62756275
# 932| [CopyAssignmentOperator] Overaligned& Overaligned::operator=(Overaligned const&)
62766276
# 932| params:
62776277
#-----| 0: [Parameter] p#0
@@ -7855,7 +7855,7 @@ ir.cpp:
78557855
# 1118| Type = [IntType] int
78567856
# 1119| 4: [DeclStmt] declaration
78577857
# 1119| 0: [TypeDeclarationEntry] declaration of d
7858-
# 1119| Type = [LocalTypedefType] d
7858+
# 1119| Type = [CTypedefType,LocalTypedefType] d
78597859
# 1120| 5: [ReturnStmt] return ...
78607860
# 1117| [TopLevelFunction] int f(float)
78617861
# 1117| params:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| typedefs.cpp:6:6:6:7 | f1 | typedefs.cpp:8:15:8:18 | TYPE | LocalTypedefType |
1+
| typedefs.cpp:6:6:6:7 | f1 | typedefs.cpp:8:15:8:18 | TYPE | CTypedefType, LocalTypedefType |
22
| typedefs.cpp:6:6:6:7 | f1 | typedefs.cpp:9:9:9:9 | D | DirectAccessHolder, LocalClass, MetricClass, StructLikeClass |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| file://:0:0:0:0 | wchar_t | Wchar_t, WideCharType | |
2-
| file://:0:0:0:0 | wchar_t * | PointerType | TypedefType, Wchar_t |
3-
| ms.c:2:24:2:30 | wchar_t | TypedefType, Wchar_t | |
2+
| file://:0:0:0:0 | wchar_t * | PointerType | CTypedefType, Wchar_t |
3+
| ms.c:2:24:2:30 | wchar_t | CTypedefType, Wchar_t | |

0 commit comments

Comments
 (0)