diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-18 21:34:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-18 21:34:55 +0000 |
commit | 643c330b914e9c6045138faa3eef10a830a94aab (patch) | |
tree | a63773eee1d773eafbcf3178027b693ca0abf9b5 /clang/lib | |
parent | eae048885d3a925c7c52602d830c59e9b14253d3 (diff) | |
download | bcm5719-llvm-643c330b914e9c6045138faa3eef10a830a94aab.tar.gz bcm5719-llvm-643c330b914e9c6045138faa3eef10a830a94aab.zip |
Provide code completion for types after the '^' that starts a block
literal.
llvm-svn: 116754
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 2785f1b14da..c4d09f2816f 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -1743,6 +1743,11 @@ bool Parser::ParseExpressionList(llvm::SmallVectorImpl<Expr*> &Exprs, /// [clang] specifier-qualifier-list block-declarator /// void Parser::ParseBlockId() { + if (Tok.is(tok::code_completion)) { + Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Type); + ConsumeCodeCompletionToken(); + } + // Parse the specifier-qualifier-list piece. DeclSpec DS; ParseSpecifierQualifierList(DS); |