diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-18 04:19:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-18 04:19:12 +0000 |
commit | baf6961ed471eb9b34275b55c03df62f2e0f01c7 (patch) | |
tree | 3003b9a674a86a6075c6eaae95136901b37aca5e /clang/lib/Parse/ParseObjc.cpp | |
parent | c0f632d6b23d808bbdc131fa3ab8a8ff47b4a8e6 (diff) | |
download | bcm5719-llvm-baf6961ed471eb9b34275b55c03df62f2e0f01c7.tar.gz bcm5719-llvm-baf6961ed471eb9b34275b55c03df62f2e0f01c7.zip |
Code completion for Objective-C properly lists
llvm-svn: 89194
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index f0b1e9f3efb..dc173eaf4de 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -834,6 +834,12 @@ ParseObjCProtocolReferences(llvm::SmallVectorImpl<Action::DeclPtrTy> &Protocols, llvm::SmallVector<IdentifierLocPair, 8> ProtocolIdents; while (1) { + if (Tok.is(tok::code_completion)) { + Actions.CodeCompleteObjCProtocolReferences(ProtocolIdents.data(), + ProtocolIdents.size()); + ConsumeToken(); + } + if (Tok.isNot(tok::identifier)) { Diag(Tok, diag::err_expected_ident); SkipUntil(tok::greater); |