diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-18 20:39:29 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-18 20:39:29 +0000 |
| commit | 293534b1a50f7489f6d6e2c24aeccc8e7db88c05 (patch) | |
| tree | dc32e59f7a8de096b84d1202bbc73093e1747083 /clang/test | |
| parent | 35b0eaf23d5fe90ad9a04f76488c212cb6f31210 (diff) | |
| download | bcm5719-llvm-293534b1a50f7489f6d6e2c24aeccc8e7db88c05.tar.gz bcm5719-llvm-293534b1a50f7489f6d6e2c24aeccc8e7db88c05.zip | |
Initialize the AST consumer as soon as we have both an ASTConsumer and an
ASTContext. Fixes some cases where we could previously initialize the AST
consumer more than once.
llvm-svn: 245346
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Index/index-pch-with-module.m | 2 | ||||
| -rw-r--r-- | clang/test/Index/skip-parsed-bodies/compile_commands.json | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Index/index-pch-with-module.m b/clang/test/Index/index-pch-with-module.m index 53bac1e4460..36c9c2beb47 100644 --- a/clang/test/Index/index-pch-with-module.m +++ b/clang/test/Index/index-pch-with-module.m @@ -18,8 +18,8 @@ int glob; // CHECK-NOT: [indexDeclaration] // CHECK: [importedASTFile]: {{.*}}.h.pch -// CHECK-NEXT: [enteredMainFile]: {{.*[/\\]}}index-pch-with-module.m // CHECK-NEXT: [startedTranslationUnit] +// CHECK-NEXT: [enteredMainFile]: {{.*[/\\]}}index-pch-with-module.m // CHECK-NEXT: [indexDeclaration]: kind: variable | name: glob | {{.*}} | loc: 10:5 // CHECK-NOT: [indexDeclaration] diff --git a/clang/test/Index/skip-parsed-bodies/compile_commands.json b/clang/test/Index/skip-parsed-bodies/compile_commands.json index 6707e84d264..30ede0db101 100644 --- a/clang/test/Index/skip-parsed-bodies/compile_commands.json +++ b/clang/test/Index/skip-parsed-bodies/compile_commands.json @@ -19,7 +19,8 @@ // XFAIL: mingw32,win32,windows-gnu // RUN: c-index-test -index-compile-db %s | FileCheck %s -// CHECK: [enteredMainFile]: t1.cpp +// CHECK: [startedTranslationUnit] +// CHECK-NEXT: [enteredMainFile]: t1.cpp // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedecl: 0 | isDef: 0 | isContainer: 0 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def1 | {{.*}} | isRedecl: 0 | isDef: 1 | isContainer: 1 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: some_val | {{.*}} | loc: ./t.h:9:27 @@ -34,6 +35,7 @@ // CHECK-NEXT: [diagnostic]: {{.*}} undeclared identifier 'undef_val2' // CHECK-NEXT: [diagnostic]: {{.*}} undeclared identifier 'undef_val3' +// CHECK-NEXT: [startedTranslationUnit] // CHECK-NEXT: [enteredMainFile]: t2.cpp // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedecl: 0 | isDef: 0 | isContainer: 0 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def1 | {{.*}} | isRedecl: 0 | isDef: 1 | isContainer: skipped @@ -53,6 +55,7 @@ // CHECK-NEXT: [diagnostic]: {{.*}} undeclared identifier 'undef_tsval' // CHECK-NEXT: [diagnostic]: {{.*}} undeclared identifier 'undef_impval' +// CHECK-NEXT: [startedTranslationUnit] // CHECK-NEXT: [enteredMainFile]: t3.cpp // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedecl: 0 | isDef: 0 | isContainer: 0 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def1 | {{.*}} | isRedecl: 0 | isDef: 1 | isContainer: skipped |

