[clang] b2f50b4 - [clang-format][NFC] Use UnwrappedLineParser::eof() for consistency
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 19 13:38:56 PDT 2023
Author: Owen Pan
Date: 2023-10-19T13:38:49-07:00
New Revision: b2f50b49a8c45305d27f0393ee6248e3e8851788
URL: https://github.com/llvm/llvm-project/commit/b2f50b49a8c45305d27f0393ee6248e3e8851788
DIFF: https://github.com/llvm/llvm-project/commit/b2f50b49a8c45305d27f0393ee6248e3e8851788.diff
LOG: [clang-format][NFC] Use UnwrappedLineParser::eof() for consistency
Added:
Modified:
clang/lib/Format/UnwrappedLineParser.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp
index bdedfad3b78ba72..7bb487d020ea6f7 100644
--- a/clang/lib/Format/UnwrappedLineParser.cpp
+++ b/clang/lib/Format/UnwrappedLineParser.cpp
@@ -213,7 +213,7 @@ void UnwrappedLineParser::parse() {
}
// Create line with eof token.
- assert(FormatTok->is(tok::eof));
+ assert(eof());
pushToken(FormatTok);
addUnwrappedLine();
More information about the cfe-commits
mailing list