[cfe-commits] [PATCH][MS] Fix for 7968 - clang lexer cannot parse 0x6cb9a43e+(0)

Douglas Gregor dgregor at apple.com
Mon Aug 30 07:51:51 PDT 2010


On Aug 25, 2010, at 4:44 AM, Francois Pichet wrote:

> 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.

Looks great, thanks! Committed in Clang r112481; please go ahead and close PR7968.

	- Doug



More information about the cfe-commits mailing list