[cfe-commits] r40409 - /cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Chris Lattner sabre at nondot.org
Sun Jul 22 15:33:25 PDT 2007


Author: lattner
Date: Sun Jul 22 17:33:25 2007
New Revision: 40409

URL: http://llvm.org/viewvc/llvm-project?rev=40409&view=rev
Log:
no need to avoid pasting >*    It can't form ->*, because we know the previous
token was not -> and if the token before it was -, the - and > would avoid pasting.

Modified:
    cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=40409&r1=40408&r2=40409&view=diff

==============================================================================
--- cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/Driver/PrintPreprocessedOutput.cpp Sun Jul 22 17:33:25 2007
@@ -361,9 +361,8 @@
   case tok::less:            // <<, <<=, <=, <?=, <?, <:, <%
     return FirstChar == '<' || FirstChar == '?' || FirstChar == '=' ||
            FirstChar == ':' || FirstChar == '%';
-  case tok::greater:         // >>, >=, >>=, >?=, >?, ->*
-    return FirstChar == '>' || FirstChar == '?' || FirstChar == '=' || 
-           FirstChar == '*';
+  case tok::greater:         // >>, >=, >>=, >?=, >?
+    return FirstChar == '>' || FirstChar == '?' || FirstChar == '=';
   case tok::pipe:            // ||, |=
     return FirstChar == '|' || FirstChar == '=';
   case tok::percent:         // %=, %>, %:





More information about the cfe-commits mailing list