diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-16 17:14:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-16 17:14:40 +0000 |
commit | 46d66143886be0c4b486f8112def441c90e5468a (patch) | |
tree | ca96e2e750af872c589968db67835465b00c8bf1 /clang/test/Index/TestClassForwardDecl.m | |
parent | 071676f42240cc06cb404f53d8f53c90b45fbc66 (diff) | |
download | bcm5719-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/TestClassForwardDecl.m')
-rw-r--r-- | clang/test/Index/TestClassForwardDecl.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/TestClassForwardDecl.m b/clang/test/Index/TestClassForwardDecl.m index 8bb437ca6f5..76c0b6cffa1 100644 --- a/clang/test/Index/TestClassForwardDecl.m +++ b/clang/test/Index/TestClassForwardDecl.m @@ -19,7 +19,7 @@ void function(Foo * arg) // CHECK-scan: {start_line=10 start_col=1 end_line=10 end_col=4} FunctionDefn=function:10:6 // CHECK-scan: {start_line=10 start_col=5 end_line=10 end_col=5} Invalid Cursor => NoDeclFound // CHECK-scan: {start_line=10 start_col=6 end_line=10 end_col=14} FunctionDefn=function:10:6 -// CHECK-scan: {start_line=10 start_col=15 end_line=10 end_col=17} ObjCClassRef=Foo:10:21 +// CHECK-scan: {start_line=10 start_col=15 end_line=10 end_col=17} ObjCClassRef=Foo:8:1 // CHECK-scan: {start_line=10 start_col=18 end_line=10 end_col=18} FunctionDefn=function:10:6 // CHECK-scan: {start_line=10 start_col=19 end_line=10 end_col=19} ParmDecl=arg:10:21 // CHECK-scan: {start_line=10 start_col=20 end_line=10 end_col=20} FunctionDefn=function:10:6 |