forked from OSchip/llvm-project
parent
e9c6ffc7d1
commit
ef50e99783
|
@ -77,7 +77,7 @@ def err_expected_rparen : Error<"expected ')'">;
|
||||||
def err_expected_rsquare : Error<"expected ']'">;
|
def err_expected_rsquare : Error<"expected ']'">;
|
||||||
def err_expected_rbrace : Error<"expected '}'">;
|
def err_expected_rbrace : Error<"expected '}'">;
|
||||||
def err_expected_greater : Error<"expected '>'">;
|
def err_expected_greater : Error<"expected '>'">;
|
||||||
def err_expected_semi_declation : Error<
|
def err_expected_semi_declaration : Error<
|
||||||
"expected ';' at end of declaration">;
|
"expected ';' at end of declaration">;
|
||||||
def err_expected_semi_decl_list : Error<
|
def err_expected_semi_decl_list : Error<
|
||||||
"expected ';' at end of declaration list">;
|
"expected ';' at end of declaration list">;
|
||||||
|
|
|
@ -367,7 +367,7 @@ Parser::DeclGroupPtrTy Parser::ParseSimpleDeclaration(unsigned Context,
|
||||||
return DG;
|
return DG;
|
||||||
}
|
}
|
||||||
|
|
||||||
Diag(Tok, diag::err_expected_semi_declation);
|
Diag(Tok, diag::err_expected_semi_declaration);
|
||||||
// Skip to end of block or statement
|
// Skip to end of block or statement
|
||||||
SkipUntil(tok::r_brace, true, true);
|
SkipUntil(tok::r_brace, true, true);
|
||||||
if (Tok.is(tok::semi))
|
if (Tok.is(tok::semi))
|
||||||
|
|
|
@ -187,7 +187,7 @@ Parser::ParseSingleDeclarationAfterTemplate(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Eat the semi colon after the declaration.
|
// Eat the semi colon after the declaration.
|
||||||
ExpectAndConsume(tok::semi, diag::err_expected_semi_declation);
|
ExpectAndConsume(tok::semi, diag::err_expected_semi_declaration);
|
||||||
return ThisDecl;
|
return ThisDecl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -561,7 +561,7 @@ Parser::ParseDeclarationOrFunctionDefinition(AccessSpecifier AS) {
|
||||||
DeclGroupPtrTy DG =
|
DeclGroupPtrTy DG =
|
||||||
ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
|
ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
|
||||||
// Eat the semi colon after the declaration.
|
// Eat the semi colon after the declaration.
|
||||||
ExpectAndConsume(tok::semi, diag::err_expected_semi_declation);
|
ExpectAndConsume(tok::semi, diag::err_expected_semi_declaration);
|
||||||
return DG;
|
return DG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue