From: Chris Lattner Date: Sun, 19 Apr 2009 07:15:51 +0000 (+0000) Subject: use isNot instead of !is X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4b1446dfa0bb7eb3da46cad37378c07ae22632b;p=clang use isNot instead of !is git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69522 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-cc/CacheTokens.cpp b/tools/clang-cc/CacheTokens.cpp index 88f29384e5..6e2a20d987 100644 --- a/tools/clang-cc/CacheTokens.cpp +++ b/tools/clang-cc/CacheTokens.cpp @@ -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;