]> granicus.if.org Git - clang/commitdiff
use isNot instead of !is
authorChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 07:15:51 +0000 (07:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 07:15:51 +0000 (07:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69522 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/CacheTokens.cpp

index 88f29384e523607204f9e3a9a00914c874351379..6e2a20d98785aca1b7c1c2f7c8d655c49da6cf48 100644 (file)
@@ -479,7 +479,7 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) {
       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 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) {
         
         // 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;