[clang] [clang-format] treat continuation as indent for aligned lines (PR #191217)

Eugene Shalygin via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 16:00:41 PDT 2026


================
@@ -1048,7 +1048,7 @@ void BreakableLineCommentSection::reflow(unsigned LineIndex,
       // tokens by the empty string.
       Whitespaces.replaceWhitespace(
           *Tokens[LineIndex], /*Newlines=*/0, /*Spaces=*/0,
-          /*StartOfTokenColumn=*/StartColumn, /*IsAligned=*/true,
+          /*StartOfTokenColumn=*/StartColumn, /*AlignedTo=*/nullptr,
----------------
zeule wrote:

Because `Spaces` is 0 I understand aligning does not happen here.

https://github.com/llvm/llvm-project/pull/191217


More information about the cfe-commits mailing list