[PATCH] [ms compatibility] Fix for PR9984.

Alexey Bataev a.bataev at hotmail.com
Thu Dec 11 23:58:15 PST 2014


================
Comment at: lib/Lex/TokenLexer.cpp:524
@@ -515,2 +523,3 @@
     PasteOpLoc = Tokens[CurToken].getLocation();
-    ++CurToken;
+    if (Tokens[CurToken].is(tok::hashhash))
+      ++CurToken;
----------------
majnemer wrote:
> What's the rationale behind this change?
In construct `L#x` we don't have `##` that should be skipped. So I just check it and skip this `##` only if it exists.

http://reviews.llvm.org/D6604

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list