aboutsummaryrefslogtreecommitdiff
path: root/tools/clang-cc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 07:15:51 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 07:15:51 +0000
commitd4b1446dfa0bb7eb3da46cad37378c07ae22632b (patch)
treeec7a1e9f3f2ef56a8e98d81be1d64130f7c5e8bc /tools/clang-cc
parent01638a619a5bfcf7f5fbd32da5eda5a9ef6a98bf (diff)
use isNot instead of !is
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-cc')
-rw-r--r--tools/clang-cc/CacheTokens.cpp7
1 files changed, 4 insertions, 3 deletions
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;