summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/file-refs.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-24 21:39:26 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-24 21:39:26 +0000
commit3698cef19f1a5ebaa2bbfd8d02771636f78093e2 (patch)
treeeb70aea4c72560506dc4862412078c41ba716bc5 /clang/test/Index/file-refs.m
parent421bbe5cc5d8390d37e5a8c670950479a377492a (diff)
downloadbcm5719-llvm-3698cef19f1a5ebaa2bbfd8d02771636f78093e2.tar.gz
bcm5719-llvm-3698cef19f1a5ebaa2bbfd8d02771636f78093e2.zip
[libclang] In clang::getCursorKindForDecl() don't return "UnexposedDecl"
for forward references of classes and protocols, this breaks libclang API usage. rdar://10747438. llvm-svn: 148861
Diffstat (limited to 'clang/test/Index/file-refs.m')
-rw-r--r--clang/test/Index/file-refs.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Index/file-refs.m b/clang/test/Index/file-refs.m
index 3f9d33687a5..583826700de 100644
--- a/clang/test/Index/file-refs.m
+++ b/clang/test/Index/file-refs.m
@@ -43,8 +43,11 @@ void test2(Sub *s, id<Prot1> p) {
// RUN: -file-refs-at=%s:7:18 \
// CHECK: ObjCImplementationDecl=Foo:7:17 (Definition)
-// CHECK-NEXT: UnexposedDecl=Foo:1:8 =[1:8 - 1:11]
+
+// FIXME: There should not be 2 for the same range.
+// CHECK-NEXT: ObjCInterfaceDecl=Foo:1:8 =[1:8 - 1:11]
// CHECK-NEXT: ObjCClassRef=Foo:3:12 =[1:8 - 1:11]
+
// CHECK-NEXT: ObjCInterfaceDecl=Foo:3:12 =[3:12 - 3:15]
// CHECK-NEXT: ObjCImplementationDecl=Foo:7:17 (Definition) =[7:17 - 7:20]
// CHECK-NEXT: ObjCClassRef=Foo:3:12 =[13:11 - 13:14]
OpenPOWER on IntegriCloud