_clang-format: Indent a moved comment

The style file sets ReflowComments to false.  clang-format 20 and
later read that value as Never.  The tool then moves the first line of
a block comment to the indentation of the code.  It leaves the other
lines of the comment where they are.  A comment inside code which the
tool indents anew ends up with a broken layout.

Set ReflowComments to IndentOnly.  The tool then indents every line of
a moved comment and still reflows no text.

Update #5785.

Assisted-by: Claude:claude-opus-5-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber authored and Chris Johns committed 2026-10-26 09:23:11 +11:00
1 parent 83d1358999
commit 1bca676f9b
1 file changed
+1 -1
+1 -1
View File
@@ -123,7 +123,7 @@ PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 500
PointerAlignment: Right
ReferenceAlignment: Right
ReflowComments: false
ReflowComments: IndentOnly
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: true