mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
_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:
1 parent
83d1358999
commit
1bca676f9b
1 file changed
+1
-1
+1
-1
@@ -123,7 +123,7 @@ PenaltyIndentedWhitespace: 0
|
||||
PenaltyReturnTypeOnItsOwnLine: 500
|
||||
PointerAlignment: Right
|
||||
ReferenceAlignment: Right
|
||||
ReflowComments: false
|
||||
ReflowComments: IndentOnly
|
||||
SortIncludes: false
|
||||
SortUsingDeclarations: true
|
||||
SpaceAfterCStyleCast: true
|
||||
|
||||
Reference in new issue
Block a user