[clang] [clang-format] treat continuation as indent for aligned lines (PR #191217)
Eugene Shalygin via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 12 02:02:14 PDT 2026
================
@@ -545,6 +545,10 @@ struct FormatToken {
/// The indent level of this token. Copied from the surrounding line.
unsigned IndentLevel = 0;
+ /// Block + continuation indent level, applied by the WhitespaceManager to
+ /// this token.
+ mutable unsigned AppliedIndentLevel = 0;
----------------
zeule wrote:
I'd like to change this into just continuation indent, so that `indentLevelFor()` `return LineStart.IndentLevel + LineStart.AppliedContinuationIndentLevel;`, but I'm not sure `FormatToken::IndentLevel` is always the block indent.
https://github.com/llvm/llvm-project/pull/191217
More information about the cfe-commits
mailing list