summaryrefslogtreecommitdiffstats
path: root/test/Index/TestClassForwardDecl.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-17 17:14:07 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-17 17:14:07 +0000
commit6653798ff5ce6deb58112777e21307ccc453133d (patch)
tree2b4e077bca278663506bc796f0d3f8a7ae92fba3 /test/Index/TestClassForwardDecl.m
parentdb85e058ed244931c81cefecbebf1a4a3030ea2d (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/TestClassForwardDecl.m')
-rw-r--r--test/Index/TestClassForwardDecl.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Index/TestClassForwardDecl.m b/test/Index/TestClassForwardDecl.m
index a042bd873d..8a83140789 100644
--- a/test/Index/TestClassForwardDecl.m
+++ b/test/Index/TestClassForwardDecl.m
@@ -15,8 +15,8 @@ void function(Foo * arg)
// CHECK-scan: [1:1 - 8:1] Invalid Cursor => NoDeclFound
// CHECK-scan: [8:1 - 8:8] UnexposedDecl=[8:8]
// CHECK-scan: [8:8 - 8:11] ObjCClassRef=Foo:8:8
-// CHECK-scan: [8:11 - 10:6] Invalid Cursor => NoDeclFound
-// CHECK-scan: [10:6 - 10:15] FunctionDecl=function:10:6 (Definition)
+// CHECK-scan: [8:11 - 10:1] Invalid Cursor => NoDeclFound
+// CHECK-scan: [10:1 - 10:15] FunctionDecl=function:10:6 (Definition)
// CHECK-scan: [10:15 - 10:18] ObjCClassRef=Foo:8:8
// CHECK-scan: [10:18 - 10:24] ParmDecl=arg:10:21 (Definition)
// CHECK-scan: [10:24 - 11:1] FunctionDecl=function:10:6 (Definition)