[PATCH] D129105: [clang-format][NFC] Clean up IndentForLevel in LevelIndentTracker
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 5 12:37:42 PDT 2022
HazardyKnusperkeks added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:82-83
+ if (Size <= Line.Level)
+ IndentForLevel.insert(IndentForLevel.end(), Line.Level - Size + 1,
+ UnknownIndent ? -1 : Indent);
}
----------------
Could we do this with with `resize` similar to my proposal in D129064?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129105/new/
https://reviews.llvm.org/D129105
More information about the cfe-commits
mailing list