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

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


Author: sabre
Date: Wed Jul 11 11:24:42 2007
New Revision: 38796

URL: http://llvm.org/viewvc/llvm-project?rev=38796&view=rev
Log:
Trigraphs are not enabled in -fpreprocessed mode.

Modified:
    cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp

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

==============================================================================
--- cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Jul 11 11:24:42 2007
@@ -341,9 +341,6 @@
     return FirstChar == ':' || FirstChar == '>';
   case tok::hash:            // ##, #@, %:%:
     return FirstChar == '#' || FirstChar == '@' || FirstChar == '%';
-  case tok::question:        // <?=, >?=, ??x -> trigraphs.
-    // Have to check for <?= in case <? is disabled.
-    return FirstChar == '?' || FirstChar == '=';
   case tok::arrow:           // ->*
     return FirstChar == '*';
     
@@ -355,6 +352,7 @@
   case tok::equal:           // ==
   case tok::lessquestion:    // <?=
   case tok::greaterquestion: // >?=
+  case tok::question:        // <?=, >?=, check for <?= in case <? is disabled.
     // Cases that concatenate only if the next char is =.
     return FirstChar == '=';
   }





More information about the cfe-commits mailing list