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

Attachment: clang-ms-def.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to