improve c linting settings

This commit is contained in:
Dennis Eichhorn 2022-12-10 23:47:34 +01:00
parent f3faffb6c0
commit ffc3b56de5

View File

@ -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