diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-21 21:23:39 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-21 21:23:39 +0000 |
commit | 6521ecc083288ca0de98bf637c28039ef1d477f4 (patch) | |
tree | 96823bdebe56540bb5a2dc7b25dcbf3c5ab88ba9 /clang/lib/Lex/PPDirectives.cpp | |
parent | 472cee30809daaffc510c138ed50bb46aa3fcdcf (diff) | |
download | bcm5719-llvm-6521ecc083288ca0de98bf637c28039ef1d477f4.tar.gz bcm5719-llvm-6521ecc083288ca0de98bf637c28039ef1d477f4.zip |
Provide an aka for the C++ operator name macro diagnostic
llvm-svn: 209322
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 5f80f4487fb..a7a4bbcc45f 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -153,7 +153,7 @@ bool Preprocessor::CheckMacroName(Token &MacroNameTok, char isDefineUndef) { // C++ 2.5p2: Alternative tokens behave the same as its primary token // except for their spellings. return Diag(MacroNameTok, diag::err_pp_operator_used_as_macro_name) - << Spelling; + << Spelling << MacroNameTok.getKind(); return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); } |