diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-23 18:23:48 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-23 18:23:48 +0000 |
commit | c49f5b2f111cad4596ed285bae771f62a25bd9e7 (patch) | |
tree | d9bb3f286ce874ae344bdf3de1ae75f527297805 /clang/lib/Parse/ParseObjc.cpp | |
parent | 08fd2cf26a2363bd3192f1280976724869359ef1 (diff) | |
download | bcm5719-llvm-c49f5b2f111cad4596ed285bae771f62a25bd9e7.tar.gz bcm5719-llvm-c49f5b2f111cad4596ed285bae771f62a25bd9e7.zip |
Introduce a new code-completion point when we're parsing a
declarator. Here, we can only see a few things (e.g., cvr-qualifiers,
nested name specifiers) and we do not want to provide other non-macro
completions. Previously, we would end up in recovery mode and would
provide a large number of non-relevant completions.
llvm-svn: 111818
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index 1b456edeecc..aafe9996d4d 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -774,9 +774,9 @@ Parser::TypeTy *Parser::ParseObjCTypeName(ObjCDeclSpec &DS) { /// __attribute__((unused)) /// Decl *Parser::ParseObjCMethodDecl(SourceLocation mLoc, - tok::TokenKind mType, - Decl *IDecl, - tok::ObjCKeywordKind MethodImplKind) { + tok::TokenKind mType, + Decl *IDecl, + tok::ObjCKeywordKind MethodImplKind) { ParsingDeclRAIIObject PD(*this); if (Tok.is(tok::code_completion)) { |