diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-21 20:51:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-21 20:51:25 +0000 |
commit | 791215b7a24666912c0b71175d2ca5ba082f666e (patch) | |
tree | 4f0dd84cffc925b37b0986ba06123638eb8082e0 /lib/Parse/ParseDecl.cpp | |
parent | 90b4fd48a6b42c2fc7b162a5e61e5f8bfa17d4ee (diff) |
Code completion for ordinary names when we're starting a declaration, expression, or statement
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 2eccbd04da..4ca5b48e8b 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -710,6 +710,11 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, const ParsedTemplateInfo &TemplateInfo, AccessSpecifier AS, DeclSpecContext DSContext) { + if (Tok.is(tok::code_completion)) { + Actions.CodeCompleteOrdinaryName(CurScope); + ConsumeToken(); + } + DS.SetRangeStart(Tok.getLocation()); while (1) { bool isInvalid = false; |