[cfe-commits] [patch] Allow redefining c++ operators like "and" in ms mode

Nico Weber thakis at chromium.org
Mon Feb 27 21:42:17 PST 2012


Hi,

the attached patch allows things like `#define and foo` in ms mode.
This fixes PR10606.

I'm not sure if this is the right approach: Preprocessor.cpp sets does
setIdentifierInfo(0) for isCPlusPlusOperatorKeyword()s, and my patch
sets it back to a "real" identifier info just in time before it's
needed in ReadMacroName().

Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ms-def.patch
Type: application/octet-stream
Size: 4159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120227/5e2ce648/attachment.obj>


More information about the cfe-commits mailing list