mirror of https://github.com/microsoft/clang.git
Fix an assertion failure when code completing an auto variable's initialiser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b399696572
commit
ec98f2fe45
|
@ -1580,6 +1580,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D,
|
|||
|
||||
if (Tok.is(tok::code_completion)) {
|
||||
Actions.CodeCompleteInitializer(getCurScope(), ThisDecl);
|
||||
Actions.FinalizeDeclaration(ThisDecl);
|
||||
cutOffParsing();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:2:9 %s
|
||||
auto i =
|
Loading…
Reference in New Issue