clang-format: use custom brace/indent style #56

Merged
MartinFouilleul merged 1 commits from clang_format_extern_indent into main 2023-08-22 20:18:05 +00:00
1 changed files with 19 additions and 2 deletions
Showing only changes of commit d515dd8fec - Show all commits

View File

@ -1,5 +1,4 @@
AllowAllArgumentsOnNextLine: false AllowAllArgumentsOnNextLine: false
BreakBeforeBraces: Allman
Cpp11BracedListStyle: false Cpp11BracedListStyle: false
ColumnLimit: 0 ColumnLimit: 0
BreakBeforeBinaryOperators: NonAssignment BreakBeforeBinaryOperators: NonAssignment
@ -16,3 +15,21 @@ SeparateDefinitionBlocks: Always
SpaceBeforeParens: Never SpaceBeforeParens: Never
ReflowComments: false ReflowComments: false
SortIncludes: false SortIncludes: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterExternBlock: false
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterObjCDeclaration: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentExternBlock: false