Fixed grammar. Thanks to Jordan Rose.

llvm-svn: 192204
This commit is contained in:
Serge Pavlov 2013-10-08 17:09:03 +00:00
parent c37877d7a4
commit 8f91b35d1b
2 changed files with 3 additions and 3 deletions

View File

@ -310,8 +310,8 @@ def err_unspecified_vla_size_with_static : Error<
def warn_deprecated_register : Warning<
"'register' storage class specifier is deprecated">,
InGroup<DeprecatedRegister>;
def err_missed_parenthesis_around_typename : Error<
"missed parenthesis around the type name in %0">;
def err_missed_parentheses_around_typename : Error<
"missed parentheses around type name in %0">;
def err_expected_case_before_expression: Error<
"expected 'case' keyword before expression">;

View File

@ -1602,7 +1602,7 @@ Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok,
SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
SourceLocation RParenLoc = PP.getLocForEndOfToken(PrevTokLocation);
Diag(LParenLoc, diag::err_missed_parenthesis_around_typename)
Diag(LParenLoc, diag::err_missed_parentheses_around_typename)
<< OpTok.getName()
<< FixItHint::CreateInsertion(LParenLoc, "(")
<< FixItHint::CreateInsertion(RParenLoc, ")");