From 1bca676f9be58337964dbfc6083c1da5abdc2507 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 Sep 2026 16:07:54 +0200 Subject: [PATCH] _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 --- _clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_clang-format b/_clang-format index 593769c1fd..75efc7abc8 100644 --- a/_clang-format +++ b/_clang-format @@ -123,7 +123,7 @@ PenaltyIndentedWhitespace: 0 PenaltyReturnTypeOnItsOwnLine: 500 PointerAlignment: Right ReferenceAlignment: Right -ReflowComments: false +ReflowComments: IndentOnly SortIncludes: false SortUsingDeclarations: true SpaceAfterCStyleCast: true