diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-19 07:15:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-19 07:15:51 +0000 |
| commit | 6ada5d72f84632be8b082c47624fef523c219431 (patch) | |
| tree | 9f84f27f80f9bc44271dc5f2699e253e35b563a7 /clang/tools/clang-cc/CacheTokens.cpp | |
| parent | fc507055c752bef5381921eb50743178d438c7cf (diff) | |
| download | bcm5719-llvm-6ada5d72f84632be8b082c47624fef523c219431.tar.gz bcm5719-llvm-6ada5d72f84632be8b082c47624fef523c219431.zip | |
use isNot instead of !is
llvm-svn: 69522
Diffstat (limited to 'clang/tools/clang-cc/CacheTokens.cpp')
| -rw-r--r-- | clang/tools/clang-cc/CacheTokens.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/tools/clang-cc/CacheTokens.cpp b/clang/tools/clang-cc/CacheTokens.cpp index 88f29384e52..6e2a20d9878 100644 --- a/clang/tools/clang-cc/CacheTokens.cpp +++ b/clang/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; |

