Try to port tests to AST dump changes

llvm-svn: 351703
This commit is contained in:
Stephen Kelly 2019-01-20 22:56:02 +00:00
parent f81edba34d
commit 7334d240b1
5 changed files with 10 additions and 13 deletions

View File

@ -23,7 +23,6 @@ int main(int argc, char **argv) {
// CHECK-NEXT: | |-ParmVarDecl {{.*}} argc 'int'
// CHECK-NEXT: | `-ParmVarDecl {{.*}} argv 'char **'
// CHECK-NEXT: |-FunctionDecl {{.*}} static_fn 'int ()' static
// CHECK-NEXT: |-FunctionDecl {{.*}} varargs_fn 'int (int, int, ...)'
// CHECK-NEXT: | |-ParmVarDecl {{.*}} x 'int'
// CHECK-NEXT: | `-ParmVarDecl {{.*}} y 'int'
// CHECK-NEXT: `-<undeserialized declarations>
// CHECK-NEXT: `-FunctionDecl {{.*}} varargs_fn 'int (int, int, ...)'
// CHECK-NEXT: |-ParmVarDecl {{.*}} x 'int'
// CHECK-NEXT: `-ParmVarDecl {{.*}} y 'int'

View File

@ -117,8 +117,8 @@ auto incomplete = &three<Incomplete*, Incomplete**, const Incomplete*>;
// CHECK: |-VarDecl {{.*}} c 'U (*)(volatile E *, volatile S &, volatile C &&)'
// CHECK: |-VarDecl {{.*}} d 'C (*)(const volatile U *, const volatile E &, const volatile S &&)'
// CHECK: |-CXXRecordDecl {{.*}} struct B
// CHECK: | |-CXXRecordDecl {{.*}} struct A
// CHECK: | | |-CXXRecordDecl {{.*}} struct S
// CHECK: | `-CXXRecordDecl {{.*}} struct A
// CHECK: | |-CXXRecordDecl {{.*}} struct S
// CHECK: |-NamespaceDecl {{.*}} A
// CHECK: | |-CXXRecordDecl {{.*}} struct C
// CHECK: | | |-CXXRecordDecl {{.*}} struct S

View File

@ -362,8 +362,7 @@ constexpr References ReferencesInstance;
// CHECK: | |-FieldDecl {{.*}} k 'double &'
// CHECK: | |-FieldDecl {{.*}} l 'unsigned long long &'
// CHECK: | `-FieldDecl {{.*}} m 'long long &'
// CHECK: |-VarDecl {{.*}} ReferencesInstance 'const References'
// CHECK: `-<undeserialized declarations>
// CHECK: `-VarDecl {{.*}} ReferencesInstance 'const References'
int main(int argc, char **argv) {
return 0;

View File

@ -870,8 +870,7 @@ const wchar_t &CRWCP = WCP;
// CHECK-NEXT: |-VarDecl {{.*}} CRC16_24 'const char16_t &'
// CHECK-NEXT: |-VarDecl {{.*}} CRC32_42 'const char32_t &'
// CHECK-NEXT: |-VarDecl {{.*}} CRWC1 'const wchar_t &'
// CHECK-NEXT: |-VarDecl {{.*}} CRWCP 'const wchar_t &'
// CHECK-NEXT: `-<undeserialized declarations>
// CHECK-NEXT: `-VarDecl {{.*}} CRWCP 'const wchar_t &'
// CHECK: (lldb) quit

View File

@ -156,6 +156,6 @@ int main(int argc, char **argv) {
// CHECK-NEXT: |-FunctionDecl {{.*}} main 'int (int, char **)'
// CHECK-NEXT: | |-ParmVarDecl {{.*}} argc 'int'
// CHECK-NEXT: | `-ParmVarDecl {{.*}} argv 'char **'
// CHECK-NEXT: |-FunctionDecl {{.*}} Function 'int (int, char)'
// CHECK-NEXT: | |-ParmVarDecl {{.*}} Param1 'int'
// CHECK-NEXT: | `-ParmVarDecl {{.*}} Param2 'char'
// CHECK-NEXT: `-FunctionDecl {{.*}} Function 'int (int, char)'
// CHECK-NEXT: |-ParmVarDecl {{.*}} Param1 'int'
// CHECK-NEXT: `-ParmVarDecl {{.*}} Param2 'char'