diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-14 18:16:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-14 18:16:08 +0000 |
commit | 54a6a68c706b7afb88da0389977de8287ae6478e (patch) | |
tree | f6b3017334a3d736ae6ad9d2ff0414480c9440a0 /clang/lib/Parse/ParseDeclCXX.cpp | |
parent | 3110a5cb937395b7dae8311ca15934aaacd5520c (diff) | |
download | bcm5719-llvm-54a6a68c706b7afb88da0389977de8287ae6478e.tar.gz bcm5719-llvm-54a6a68c706b7afb88da0389977de8287ae6478e.zip |
Merge some similar diagnostics using %select.
llvm-svn: 253136
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDeclCXX.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index eeab3976757..05a75d26ecd 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -394,8 +394,8 @@ Decl *Parser::ParseUsingDirectiveOrDeclaration(unsigned Context, // Template parameters are always an error here. if (TemplateInfo.Kind) { SourceRange R = TemplateInfo.getSourceRange(); - Diag(UsingLoc, diag::err_templated_using_directive) - << R << FixItHint::CreateRemoval(R); + Diag(UsingLoc, diag::err_templated_using_directive_declaration) + << 0 /* directive */ << R << FixItHint::CreateRemoval(R); } return ParseUsingDirective(Context, UsingLoc, DeclEnd, attrs); @@ -645,8 +645,8 @@ Decl *Parser::ParseUsingDeclaration(unsigned Context, // template <...> using id = type; if (TemplateInfo.Kind && !IsAliasDecl) { SourceRange R = TemplateInfo.getSourceRange(); - Diag(UsingLoc, diag::err_templated_using_declaration) - << R << FixItHint::CreateRemoval(R); + Diag(UsingLoc, diag::err_templated_using_directive_declaration) + << 1 /* declaration */ << R << FixItHint::CreateRemoval(R); // Unfortunately, we have to bail out instead of recovering by // ignoring the parameters, just in case the nested name specifier |