From ffc3b56de5986b7821f2aab91e6d192ab32a99b8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 23:47:34 +0100 Subject: [PATCH] improve c linting settings --- Config/.clang-format | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/Config/.clang-format b/Config/.clang-format index e39a689..8765853 100755 --- a/Config/.clang-format +++ b/Config/.clang-format @@ -1,30 +1,40 @@ # Common settings AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: 'true' +AlignConsecutiveMacros: + Enabled: true + AlignCompound: true + PadOperators: true + AcrossEmptyLines: false + AcrossComments: false AlignEscapedNewlines: Left -AlignOperands: 'true' -AlignConsecutiveDeclarations: 'false' +AlignOperands: true +AlignConsecutiveDeclarations: false BreakBeforeBraces: Linux ColumnLimit: '120' IndentWidth: '4' -KeepEmptyLinesAtTheStartOfBlocks: 'false' +KeepEmptyLinesAtTheStartOfBlocks: false NamespaceIndentation: All PointerAlignment: Right -SortIncludes: 'true' -SortUsingDeclarations: 'true' -SpaceAfterCStyleCast: 'true' -SpaceAfterLogicalNot: 'false' -SpaceAfterTemplateKeyword: 'false' -SpaceBeforeAssignmentOperators: 'true' +SortIncludes: true +SortUsingDeclarations: true +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: 'true' -SpaceInEmptyParentheses: 'false' -SpacesInAngles: 'false' -SpacesInCStyleCastParentheses: 'false' -SpacesInContainerLiterals: 'false' -SpacesInParentheses: 'false' -SpacesInSquareBrackets: 'false' +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false TabWidth: '4' UseTab: Never IndentPPDirectives: BeforeHash +IndentCaseLabels: true +BraceWrappingAfterControlStatementStyle: BWACS_MultiLine +BreakBeforeBinaryOperators: BOS_All +AllowShortBlocksOnASingleLine: SBS_Empty +AllowShortIfStatementsOnASingleLine: Never \ No newline at end of file