Preprocessor: recover gracefully when C++ operator names are used as macro identifiers
authorAlp Toker <alp@nuanti.com>
Sat, 31 May 2014 03:38:17 +0000 (03:38 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 31 May 2014 03:38:17 +0000 (03:38 +0000)
commitc5d194fcd3ea30bf3162bdea61e6d0ca67da8cb8
tree0e7dcad4ec35e7da3bec0501bcce43631512c775
parentf33619cb51c7b1a77f2063f5bb6be8dda81bf7c5
Preprocessor: recover gracefully when C++ operator names are used as macro identifiers

This failure mode shows up occasionally when users try to include C headers in
C++ projects or when porting from Windows. We might as well recover in the way
the user expected, thus avoiding confusing diagnostic messages at point of use.

llvm-svn: 209963
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/cxx_oper_keyword.cpp