Skip to content

Commit

Permalink
[clang-format] Use back() instead of rbegin(). NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurdej committed Feb 3, 2022
1 parent bb1b53d commit 7cc3e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Format/TokenAnalyzer.cpp
Expand Up @@ -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];
Expand Down

0 comments on commit 7cc3e02

Please sign in to comment.