forked from OSchip/llvm-project
parent
99b98f07d4
commit
744cc5b5dd
|
@ -927,7 +927,7 @@ Parser::ParseDeclarationOrFunctionDefinition(ParsedAttributesWithRange &attrs,
|
|||
Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
|
||||
const ParsedTemplateInfo &TemplateInfo,
|
||||
LateParsedAttrList *LateParsedAttrs) {
|
||||
// Poison the SEH identifiers so they are flagged as illegal in function bodies
|
||||
// Poison SEH identifiers so they are flagged as illegal in function bodies.
|
||||
PoisonSEHIdentifiersRAIIObject PoisonSEHIdentifiers(*this, true);
|
||||
const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo();
|
||||
|
||||
|
@ -1725,7 +1725,8 @@ SourceLocation Parser::handleUnexpectedCodeCompletionToken() {
|
|||
|
||||
for (Scope *S = getCurScope(); S; S = S->getParent()) {
|
||||
if (S->getFlags() & Scope::FnScope) {
|
||||
Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_RecoveryInFunction);
|
||||
Actions.CodeCompleteOrdinaryName(getCurScope(),
|
||||
Sema::PCC_RecoveryInFunction);
|
||||
cutOffParsing();
|
||||
return PrevTokLocation;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue