[cfe-commits] r38713 - /cfe/cfe/trunk/Lex/MacroExpander.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:24:02 PDT 2007


Author: sabre
Date: Wed Jul 11 11:24:01 2007
New Revision: 38713

URL: http://llvm.org/viewvc/llvm-project?rev=38713&view=rev
Log:
The leading space flag of a stringized string matches that of the # operator.

Modified:
    cfe/cfe/trunk/Lex/MacroExpander.cpp

Modified: cfe/cfe/trunk/Lex/MacroExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/MacroExpander.cpp?rev=38713&r1=38712&r2=38713&view=diff

==============================================================================
--- cfe/cfe/trunk/Lex/MacroExpander.cpp (original)
+++ cfe/cfe/trunk/Lex/MacroExpander.cpp Wed Jul 11 11:24:01 2007
@@ -178,14 +178,14 @@
                                FormalArgs->getUnexpArgument(ArgNo), PP, true));
       }
       
-      // FIXME: Should the stringified string leading space flag get set to
-      // match the # or the identifier?
+      // The stringified/charified string leading space flag gets set to match
+      // the #/#@ operator.
+      if (CurTok.hasLeadingSpace())
+        ResultToks.back().SetFlag(LexerToken::LeadingSpace);
       
       MadeChange = true;
       ++i;  // Skip arg name.
     } else {
-      // FIXME: handle microsoft charize extension.
-      
       ResultToks.push_back(CurTok);
     }
   }





More information about the cfe-commits mailing list