diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-18 00:17:05 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-18 00:17:05 +0000 |
commit | 5e2ec486bbd3f8432ecdab2a20dc402dd6c36845 (patch) | |
tree | cc4d21e910c22a6e95fac94fe8f0fee0e235128d /clang/test/Index/index-module.m | |
parent | 121d2a90f0215c2b1c2df7c7980832b898a335aa (diff) | |
download | bcm5719-llvm-5e2ec486bbd3f8432ecdab2a20dc402dd6c36845.tar.gz bcm5719-llvm-5e2ec486bbd3f8432ecdab2a20dc402dd6c36845.zip |
[libclang] Invoke a ppIncludedFile callback when indexing implicit module imports.
llvm-svn: 166161
Diffstat (limited to 'clang/test/Index/index-module.m')
-rw-r--r-- | clang/test/Index/index-module.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Index/index-module.m b/clang/test/Index/index-module.m index 04eb99ac194..0af4e37f3c3 100644 --- a/clang/test/Index/index-module.m +++ b/clang/test/Index/index-module.m @@ -9,6 +9,7 @@ int glob; // CHECK-NOT: [indexDeclaration] // CHECK: [importedASTFile]: [[PCM:.*[/\\]DependsOnModule\.pcm]] | loc: 2:2 | name: "DependsOnModule" | isImplicit: 1 +// CHECK-NEXT: [ppIncludedFile]: {{.*}}/Modules/Inputs/DependsOnModule.framework{{[/\\]}}Headers{{[/\\]}}DependsOnModule.h | name: "DependsOnModule/DependsOnModule.h" | hash loc: 2:1 | isImport: 0 | isAngled: 1 | isModule: 1 // CHECK-NOT: [indexDeclaration] // CHECK: [importedASTFile]: [[PCM]] | loc: 3:1 | name: "DependsOnModule" | isImplicit: 0 // CHECK-NEXT: [indexDeclaration]: kind: variable | name: glob | {{.*}} | loc: 4:5 @@ -18,6 +19,7 @@ int glob; // CHECK-DMOD: [startedTranslationUnit] // CHECK-DMOD-NEXT: [ppIncludedFile]: [[DMOD_MODULE_H:.*/Modules/Inputs/DependsOnModule\.framework[/\\]Headers[/\\]DependsOnModule\.h]] | {{.*}} | hash loc: <invalid> +// CHECK-DMOD-NEXT: [ppIncludedFile]: {{.*}}/Modules/Inputs/Module.framework{{[/\\]}}Headers{{[/\\]}}Module.h | name: "Module/Module.h" | hash loc: {{.*}}/Modules/Inputs/DependsOnModule.framework{{[/\\]}}Headers{{[/\\]}}DependsOnModule.h:1:1 | isImport: 0 | isAngled: 1 | isModule: 1 // CHECK-DMOD-NEXT: [ppIncludedFile]: [[DMOD_OTHER_H:.*/Modules/Inputs/DependsOnModule\.framework[/\\]Headers[/\\]other\.h]] | {{.*}} | hash loc: <invalid> // CHECK-DMOD-NEXT: [ppIncludedFile]: [[DMOD_SUB_H:.*/Modules/Inputs/DependsOnModule\.framework[/\\]Frameworks[/\\]SubFramework\.framework[/\\]Headers[/\\]SubFramework\.h]] | {{.*}} | hash loc: <invalid> // CHECK-DMOD-NEXT: [ppIncludedFile]: [[DMOD_SUB_OTHER_H:.*/Modules/Inputs/DependsOnModule.framework[/\\]Frameworks/SubFramework\.framework/Headers/Other\.h]] | name: "SubFramework/Other.h" | hash loc: [[DMOD_SUB_H]]:1:1 | isImport: 0 | isAngled: 0 |