diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-11-17 17:14:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-11-17 17:14:07 +0000 |
commit | 29ee42286167f04a0f214bf3891f5204f6590212 (patch) | |
tree | 534a02c3e6af354a50bdae348a6111941213c354 /clang/test/Index/TestClassDecl.m | |
parent | b67912d5cdc0d185d3530a81b5cce7b3ffc5fc50 (diff) | |
download | bcm5719-llvm-29ee42286167f04a0f214bf3891f5204f6590212.tar.gz bcm5719-llvm-29ee42286167f04a0f214bf3891f5204f6590212.zip |
When comparing the source range of a declaration against the region of
interest (e.g., as used by clang_getCursor()), count the
decl-specifier-seq as part of the source range, as we do for
clang_annotateTokens(). Makes clang_getCursor() work properly for the
result types of functions, for example.
llvm-svn: 119514
Diffstat (limited to 'clang/test/Index/TestClassDecl.m')
-rw-r--r-- | clang/test/Index/TestClassDecl.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/TestClassDecl.m b/clang/test/Index/TestClassDecl.m index 8cbe5cd5e9b..1aa26ac77c1 100644 --- a/clang/test/Index/TestClassDecl.m +++ b/clang/test/Index/TestClassDecl.m @@ -20,8 +20,8 @@ void function(Foo * arg) // CHECK-scan: [8:8 - 8:11] ObjCClassRef=Foo:10:12 // CHECK-scan: [8:11 - 10:1] Invalid Cursor => NoDeclFound // CHECK-scan: [10:1 - 11:5] ObjCInterfaceDecl=Foo:10:12 -// CHECK-scan: [11:5 - 13:6] Invalid Cursor => NoDeclFound -// CHECK-scan: [13:6 - 13:15] FunctionDecl=function:13:6 (Definition) +// CHECK-scan: [11:5 - 13:1] Invalid Cursor => NoDeclFound +// CHECK-scan: [13:1 - 13:15] FunctionDecl=function:13:6 (Definition) // CHECK-scan: [13:15 - 13:18] ObjCClassRef=Foo:10:12 // CHECK-scan: [13:18 - 13:24] ParmDecl=arg:13:21 (Definition) // CHECK-scan: [13:24 - 14:1] FunctionDecl=function:13:6 (Definition) |