[clang-format] Use back() instead of rbegin(). NFC.

This commit is contained in:
Marek Kurdej 2022-02-03 10:07:02 +01:00
parent bb1b53da6e
commit 7cc3e02042
1 changed files with 1 additions and 1 deletions
clang/lib/Format

View File

@ -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];