diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-16 15:44:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-16 15:44:18 +0000 |
commit | ef6eb84da15e7894edcc0bae08161c5016d76f44 (patch) | |
tree | 1c3d81ed35b5df31ba2befe004cca13ad041e54c /clang/test/Index/c-index-getCursor-test.m | |
parent | 002b67105500e620d5f87693f981a8abd0afb32b (diff) | |
download | bcm5719-llvm-ef6eb84da15e7894edcc0bae08161c5016d76f44.tar.gz bcm5719-llvm-ef6eb84da15e7894edcc0bae08161c5016d76f44.zip |
Use a sane encoding for CXCursor_ObjCProtocolRef, using the actual
source locations where the protocols were referenced rather than the
location of some random enclosing declaration.
llvm-svn: 93637
Diffstat (limited to 'clang/test/Index/c-index-getCursor-test.m')
-rw-r--r-- | clang/test/Index/c-index-getCursor-test.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/c-index-getCursor-test.m b/clang/test/Index/c-index-getCursor-test.m index 0567506f231..10f905fa3f8 100644 --- a/clang/test/Index/c-index-getCursor-test.m +++ b/clang/test/Index/c-index-getCursor-test.m @@ -120,7 +120,7 @@ int main (int argc, const char * argv[]) { // CHECK: {start_line=47 start_col=2 end_line=47 end_col=3} TypedefDecl=id:0:0 // CHECK: {start_line=47 start_col=4 end_line=47 end_col=4} FunctionDefn=main:44:5 // CHECK: {start_line=47 start_col=5 end_line=47 end_col=5} VarDecl=c:47:12 -// CHECK: {start_line=47 start_col=6 end_line=47 end_col=9} ObjCProtocolRef=SubP:47:12 +// CHECK: {start_line=47 start_col=6 end_line=47 end_col=9} ObjCProtocolRef=SubP:27:1 // CHECK: {start_line=47 start_col=10 end_line=47 end_col=10} VarDecl=c:47:12 // CHECK: {start_line=47 start_col=11 end_line=47 end_col=11} FunctionDefn=main:44:5 // CHECK: {start_line=47 start_col=12 end_line=47 end_col=15} VarDecl=c:47:12 @@ -129,7 +129,7 @@ int main (int argc, const char * argv[]) { // CHECK: {start_line=48 start_col=2 end_line=48 end_col=3} TypedefDecl=id:0:0 // CHECK: {start_line=48 start_col=4 end_line=48 end_col=4} FunctionDefn=main:44:5 // CHECK: {start_line=48 start_col=5 end_line=48 end_col=5} VarDecl=d:48:13 -// CHECK: {start_line=48 start_col=6 end_line=48 end_col=10} ObjCProtocolRef=Proto:48:13 +// CHECK: {start_line=48 start_col=6 end_line=48 end_col=10} ObjCProtocolRef=Proto:23:1 // CHECK: {start_line=48 start_col=11 end_line=48 end_col=11} VarDecl=d:48:13 // CHECK: {start_line=48 start_col=12 end_line=48 end_col=12} FunctionDefn=main:44:5 // CHECK: {start_line=48 start_col=13 end_line=48 end_col=13} VarDecl=d:48:13 |