aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Lex/ModuleDeclStateTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Lex/ModuleDeclStateTest.cpp')
-rw-r--r--clang/unittests/Lex/ModuleDeclStateTest.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/unittests/Lex/ModuleDeclStateTest.cpp b/clang/unittests/Lex/ModuleDeclStateTest.cpp
index ed69438..15306ba 100644
--- a/clang/unittests/Lex/ModuleDeclStateTest.cpp
+++ b/clang/unittests/Lex/ModuleDeclStateTest.cpp
@@ -90,12 +90,7 @@ protected:
PP.addPPCallbacks(std::move(C));
PP.EnterMainSourceFile();
- while (1) {
- Token tok;
- PP.Lex(tok);
- if (tok.is(tok::eof))
- break;
- }
+ PP.LexTokensUntilEOF();
}
FileSystemOptions FileMgrOpts;