summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/TestClassDecl.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-16 17:14:40 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-16 17:14:40 +0000
commit46d66143886be0c4b486f8112def441c90e5468a (patch)
treeca96e2e750af872c589968db67835465b00c8bf1 /clang/test/Index/TestClassDecl.m
parent071676f42240cc06cb404f53d8f53c90b45fbc66 (diff)
downloadbcm5719-llvm-46d66143886be0c4b486f8112def441c90e5468a.tar.gz
bcm5719-llvm-46d66143886be0c4b486f8112def441c90e5468a.zip
Give ObjCClassRef cursors a sane representation, which is encapsulated
in CXCursor.cpp. With this sane representation, fix the class reference that is part of Objective-C category declarations so that the cursor's location matches up with the reference, not the class being referred to. llvm-svn: 93640
Diffstat (limited to 'clang/test/Index/TestClassDecl.m')
-rw-r--r--clang/test/Index/TestClassDecl.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/TestClassDecl.m b/clang/test/Index/TestClassDecl.m
index 0ec5c75af57..9737ec213fb 100644
--- a/clang/test/Index/TestClassDecl.m
+++ b/clang/test/Index/TestClassDecl.m
@@ -17,14 +17,14 @@ void function(Foo * arg)
// CHECK-scan: {start_line=1 start_col=1 end_line=7 end_col=1} Invalid Cursor => NoDeclFound
// CHECK-scan: {start_line=8 start_col=1 end_line=8 end_col=7} Invalid Cursor => NotImplemented
-// CHECK-scan: {start_line=8 start_col=8 end_line=8 end_col=10} ObjCClassRef=Foo:8:1
+// CHECK-scan: {start_line=8 start_col=8 end_line=8 end_col=10} ObjCClassRef=Foo:10:1
// CHECK-scan: {start_line=8 start_col=11 end_line=9 end_col=1} Invalid Cursor => NoDeclFound
// CHECK-scan: {start_line=10 start_col=1 end_line=11 end_col=4} ObjCInterfaceDecl=Foo:10:1
// CHECK-scan: {start_line=11 start_col=5 end_line=12 end_col=1} Invalid Cursor => NoDeclFound
// CHECK-scan: {start_line=13 start_col=1 end_line=13 end_col=4} FunctionDefn=function:13:6
// CHECK-scan: {start_line=13 start_col=5 end_line=13 end_col=5} Invalid Cursor => NoDeclFound
// CHECK-scan: {start_line=13 start_col=6 end_line=13 end_col=14} FunctionDefn=function:13:6
-// CHECK-scan: {start_line=13 start_col=15 end_line=13 end_col=17} ObjCClassRef=Foo:13:21
+// CHECK-scan: {start_line=13 start_col=15 end_line=13 end_col=17} ObjCClassRef=Foo:10:1
// CHECK-scan: {start_line=13 start_col=18 end_line=13 end_col=18} FunctionDefn=function:13:6
// CHECK-scan: {start_line=13 start_col=19 end_line=13 end_col=19} ParmDecl=arg:13:21
// CHECK-scan: {start_line=13 start_col=20 end_line=13 end_col=20} FunctionDefn=function:13:6
OpenPOWER on IntegriCloud