[PATCH] [ms compatibility] Fix for PR9984.

Bataev, Alexey a.bataev at hotmail.com
Fri Dec 12 00:19:16 PST 2014


> Can we get rid of our `kw_L__FUNCTION__` hack with this change?
No, I don't think we can. My solution fixes only lexer, but when we building L__FUNCTION__ we're building an expression.

Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team

12.12.2014 7:39, David Majnemer пишет:
> Can we get rid of our `kw_L__FUNCTION__` hack with this change?
>
>
> ================
> Comment at: lib/Lex/TokenLexer.cpp:524
> @@ -515,2 +523,3 @@
>       PasteOpLoc = Tokens[CurToken].getLocation();
> -    ++CurToken;
> +    if (Tokens[CurToken].is(tok::hashhash))
> +      ++CurToken;
> ----------------
> What's the rationale behind this change?
>
> http://reviews.llvm.org/D6604
>
> EMAIL PREFERENCES
>    http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
>





More information about the cfe-commits mailing list