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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to