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 # Common settings
AlignAfterOpenBracket: Align AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'true' AlignConsecutiveMacros:
Enabled: true
AlignCompound: true
PadOperators: true
AcrossEmptyLines: false
AcrossComments: false
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AlignOperands: 'true' AlignOperands: true
AlignConsecutiveDeclarations: 'false' AlignConsecutiveDeclarations: false
BreakBeforeBraces: Linux BreakBeforeBraces: Linux
ColumnLimit: '120' ColumnLimit: '120'
IndentWidth: '4' IndentWidth: '4'
KeepEmptyLinesAtTheStartOfBlocks: 'false' KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All NamespaceIndentation: All
PointerAlignment: Right PointerAlignment: Right
SortIncludes: 'true' SortIncludes: true
SortUsingDeclarations: 'true' SortUsingDeclarations: true
SpaceAfterCStyleCast: 'true' SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: 'false' SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: 'false' SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: 'true' SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true' SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: 'false' SpaceInEmptyParentheses: false
SpacesInAngles: 'false' SpacesInAngles: false
SpacesInCStyleCastParentheses: 'false' SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: 'false' SpacesInContainerLiterals: false
SpacesInParentheses: 'false' SpacesInParentheses: false
SpacesInSquareBrackets: 'false' SpacesInSquareBrackets: false
TabWidth: '4' TabWidth: '4'
UseTab: Never UseTab: Never
IndentPPDirectives: BeforeHash IndentPPDirectives: BeforeHash
IndentCaseLabels: true
BraceWrappingAfterControlStatementStyle: BWACS_MultiLine
BreakBeforeBinaryOperators: BOS_All
AllowShortBlocksOnASingleLine: SBS_Empty
AllowShortIfStatementsOnASingleLine: Never