Hi, Patch to fix http://llvm.org/bugs/show_bug.cgi?id=7968 It is a lexer hack to be compatible with MSVC.
Allow to parse things like:
int var = 0x6cb9a43e+0;
in -fms-extensions mode.
The fix is to not continue parsing a number pp-token when we reach a
'-' or '+' if the token was starting with '0x' or '0X'.
This removes ~250 compile errors when parsing about 1200 .h from the
Windows SDK.
Comments welcome.
ms_hex_literal_hack.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
