From 40c9c7bfc80dff94d2d788f9be83d01410d1d37e Mon Sep 17 00:00:00 2001 From: Gernot Kranz Date: Fri, 20 Jan 2023 14:04:37 +0100 Subject: [PATCH] Change clang-format behaviour in regard to comments --- .clang-format | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index b2d1b66..f9d94f0 100644 --- a/.clang-format +++ b/.clang-format @@ -3,8 +3,8 @@ Language: Cpp Standard: c++17 DerivePointerAlignment: true SortIncludes: Never -ReflowComments: false -CommentPragmas: '/\*\*(.+\n.+)+\*/' +ReflowComments: true +#CommentPragmas: '/\*\*(.+\n.+)+\*/' PointerAlignment: Left AlignAfterOpenBracket: AlwaysBreak AlignOperands: AlignAfterOperator @@ -39,6 +39,9 @@ IndentWidth: 4 MaxEmptyLinesToKeep: 2 NamespaceIndentation: All SpaceAfterTemplateKeyword: false +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: -1 AccessModifierOffset: -4 AllowShortBlocksOnASingleLine: Always IndentPPDirectives: BeforeHash