From: Serge Pavlov Date: Tue, 8 Oct 2013 17:09:03 +0000 (+0000) Subject: Fixed grammar. Thanks to Jordan Rose. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ca0fce1700acdbd688886259168152e1bec9979;p=clang Fixed grammar. Thanks to Jordan Rose. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192204 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 71463d53ef..1ffcd9213e 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -310,8 +310,8 @@ def err_unspecified_vla_size_with_static : Error< def warn_deprecated_register : Warning< "'register' storage class specifier is deprecated">, InGroup; -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">; diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 582721cf40..35c2aeffc2 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -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, ")");