diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-08 21:55:05 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-08 21:55:05 +0000 |
commit | ece8e71d12b6f4cb2dc501297afef126dab8ad74 (patch) | |
tree | 9993ab0de315ab53b19a38b2488fd4ba9ccc3d91 /lib/Parse/ParseObjc.cpp | |
parent | 8408db36ee6592dd08d20ffcaac36ba81cffd5b8 (diff) |
Add code completion support for ObjC property declarations/attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseObjc.cpp')
-rw-r--r-- | lib/Parse/ParseObjc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 014f10edd4..1d29f319c5 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -390,6 +390,10 @@ void Parser::ParseObjCPropertyAttribute(ObjCDeclSpec &DS) { SourceLocation LHSLoc = ConsumeParen(); // consume '(' while (1) { + if (Tok.is(tok::code_completion)) { + Actions.CodeCompleteObjCProperty(CurScope, DS); + ConsumeToken(); + } const IdentifierInfo *II = Tok.getIdentifierInfo(); // If this is not an identifier at all, bail out early. |