[cfe-commits] [PATCH][MS] Fix for 7968 - clang lexer cannot parse 0x6cb9a43e+(0)
Francois Pichet
pichet2000 at gmail.com
Wed Aug 25 04:44:45 PDT 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms_hex_literal_hack.patch
Type: application/octet-stream
Size: 1652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100825/32f78163/attachment.obj>
More information about the cfe-commits
mailing list