summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-17 01:03:52 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-17 01:03:52 +0000
commitb1b71e50a0767f429122c92d38c9e227472fb26d (patch)
tree8e5e06b6726aae03207a2a29b44301fd7d420163 /clang/test/Index/annotate-tokens.m
parentbcc230a7653624d5e2854e4718dbf9fe07aacd9f (diff)
downloadbcm5719-llvm-b1b71e50a0767f429122c92d38c9e227472fb26d.tar.gz
bcm5719-llvm-b1b71e50a0767f429122c92d38c9e227472fb26d.zip
For an Objective-C @synthesize statement, e.g.,
@synthesize foo = _foo; keep track of the location of the ivar ("_foo"). Teach libclang to visit the ivar as a member reference. llvm-svn: 119447
Diffstat (limited to 'clang/test/Index/annotate-tokens.m')
-rw-r--r--clang/test/Index/annotate-tokens.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Index/annotate-tokens.m b/clang/test/Index/annotate-tokens.m
index f2933c6588d..07e6020c74b 100644
--- a/clang/test/Index/annotate-tokens.m
+++ b/clang/test/Index/annotate-tokens.m
@@ -479,4 +479,9 @@ static Rdar8595462_A * Rdar8595462_staticVar;
// CHECK: Punctuation: "*" [111:26 - 111:27] ObjCPropertyDecl=foo2:111:27
// CHECK: Identifier: "foo2" [111:27 - 111:31] ObjCPropertyDecl=foo2:111:27
-// FIXME: Very poor handling of @synthesized
+// CHECK: Punctuation: "@" [115:1 - 115:2] UnexposedDecl=foo:110:33 (Definition)
+// CHECK: Keyword: "synthesize" [115:2 - 115:12] UnexposedDecl=foo:110:33 (Definition)
+// CHECK: Identifier: "foo" [115:13 - 115:16] UnexposedDecl=foo:110:33 (Definition)
+// CHECK: Punctuation: "=" [115:17 - 115:18] UnexposedDecl=foo:110:33 (Definition)
+// CHECK: Identifier: "_foo" [115:19 - 115:23] MemberRef=_foo:107:8
+// CHECK: Punctuation: ";" [115:23 - 115:24] ObjCImplementationDecl=Rdar8595386:114:1 (Definition)
OpenPOWER on IntegriCloud