summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-module.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
commit12fdb9e34b8cc4cc848d4ef8c601de5e5faf694d (patch)
treee680c84ee2e8ac9cd9eef9cb353147ef7e4d1cb9 /clang/test/Index/annotate-module.m
parent62498ab4d54c946d84d1f2861954a4f41e306637 (diff)
downloadbcm5719-llvm-12fdb9e34b8cc4cc848d4ef8c601de5e5faf694d.tar.gz
bcm5719-llvm-12fdb9e34b8cc4cc848d4ef8c601de5e5faf694d.zip
[libclang] Introduce clang_Module_getASTFile function that returns the module file where a module object came from.
rdar://13743084 llvm-svn: 180643
Diffstat (limited to 'clang/test/Index/annotate-module.m')
-rw-r--r--clang/test/Index/annotate-module.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Index/annotate-module.m b/clang/test/Index/annotate-module.m
index 33ca3f83249..55e21d235e7 100644
--- a/clang/test/Index/annotate-module.m
+++ b/clang/test/Index/annotate-module.m
@@ -40,3 +40,10 @@ int glob;
// CHECK-MOD-NEXT: Punctuation: "*" [2:5 - 2:6] VarDecl=Module_Sub:2:6
// CHECK-MOD-NEXT: Identifier: "Module_Sub" [2:6 - 2:16] VarDecl=Module_Sub:2:6
// CHECK-MOD-NEXT: Punctuation: ";" [2:16 - 2:17]
+
+// RUN: c-index-test -cursor-at=%s:3:11 %s -fmodules-cache-path=%t.cache -fmodules -F %S/../Modules/Inputs \
+// RUN: | FileCheck %s -check-prefix=CHECK-CURSOR
+
+// CHECK-CURSOR: 3:1 ModuleImport=DependsOnModule:3:1 (Definition) Extent=[3:1 - 3:24] Spelling=DependsOnModule ([3:9 - 3:24]) ModuleName=DependsOnModule ({{.*}}DependsOnModule.pcm) Headers(2):
+// CHECK-CURSOR-NEXT: {{.*}}other.h
+// CHECK-CURSOR-NEXT: {{.*}}DependsOnModule.h
OpenPOWER on IntegriCloud