[cfe-commits] r69522 - /cfe/trunk/tools/clang-cc/CacheTokens.cpp

Chris Lattner sabre at nondot.org
Sun Apr 19 00:15:51 PDT 2009


Author: lattner
Date: Sun Apr 19 02:15:51 2009
New Revision: 69522

URL: http://llvm.org/viewvc/llvm-project?rev=69522&view=rev
Log:
use isNot instead of !is

Modified:
    cfe/trunk/tools/clang-cc/CacheTokens.cpp

Modified: cfe/trunk/tools/clang-cc/CacheTokens.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/CacheTokens.cpp?rev=69522&r1=69521&r2=69522&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/CacheTokens.cpp (original)
+++ cfe/trunk/tools/clang-cc/CacheTokens.cpp Sun Apr 19 02:15:51 2009
@@ -479,7 +479,7 @@
       assert(!Tok.isAtStartOfLine());
       
       // Did we see 'include'/'import'/'include_next'?
-      if (!Tok.is(tok::identifier)) {
+      if (Tok.isNot(tok::identifier)) {
         EmitToken(Tok);
         continue;
       }
@@ -535,8 +535,9 @@
         
         // Some files have gibberish on the same line as '#endif'.
         // Discard these tokens.
-        do L.LexFromRawLexer(Tok); while (!Tok.is(tok::eof) &&
-                                          !Tok.isAtStartOfLine());
+        do
+          L.LexFromRawLexer(Tok);
+        while (Tok.isNot(tok::eof) && !Tok.isAtStartOfLine());
         // We have the next token in hand.
         // Don't immediately lex the next one.
         goto NextToken;        





More information about the cfe-commits mailing list