[clang] 7cc3e02 - [clang-format] Use back() instead of rbegin(). NFC.
Marek Kurdej via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 3 01:07:16 PST 2022
Author: Marek Kurdej
Date: 2022-02-03T10:07:02+01:00
New Revision: 7cc3e0204210a8c9c12f29fddbfec9dfe786e931
URL: https://github.com/llvm/llvm-project/commit/7cc3e0204210a8c9c12f29fddbfec9dfe786e931
DIFF: https://github.com/llvm/llvm-project/commit/7cc3e0204210a8c9c12f29fddbfec9dfe786e931.diff
LOG: [clang-format] Use back() instead of rbegin(). NFC.
Added:
Modified:
clang/lib/Format/TokenAnalyzer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/TokenAnalyzer.cpp b/clang/lib/Format/TokenAnalyzer.cpp
index 2bd5a1fd6230..348da1f03f29 100644
--- a/clang/lib/Format/TokenAnalyzer.cpp
+++ b/clang/lib/Format/TokenAnalyzer.cpp
@@ -110,7 +110,7 @@ std::pair<tooling::Replacements, unsigned> TokenAnalyzer::process() {
UnwrappedLineParser Parser(Style, Lex.getKeywords(),
Env.getFirstStartColumn(), Tokens, *this);
Parser.parse();
- assert(UnwrappedLines.rbegin()->empty());
+ assert(UnwrappedLines.back().empty());
unsigned Penalty = 0;
for (unsigned Run = 0, RunE = UnwrappedLines.size(); Run + 1 != RunE; ++Run) {
const auto &Lines = UnwrappedLines[Run];
More information about the cfe-commits
mailing list