colorchord/.clang-format

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2021-03-13 19:58:17 +01:00
# Basic style rules by Charles Lohr
2021-03-13 16:54:50 +01:00
BasedOnStyle: Microsoft
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: 'Yes'
AlignAfterOpenBracket: DontAlign
AlignTrailingComments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
ColumnLimit: '120'
ExperimentalAutoDetectBinPacking: 'false'
NamespaceIndentation: None
MaxEmptyLinesToKeep: 2
PointerAlignment: Right
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'true'
2021-05-22 20:44:59 +02:00
# this is just atrocious
#SpacesInCStyleCastParentheses: 'true'
2021-03-13 16:54:50 +01:00
SpacesInContainerLiterals: 'true'
SpacesInParentheses: 'true'
SpacesInSquareBrackets: 'true'
TabWidth: '4'
UseTab: AlignWithSpaces
2021-03-13 16:54:50 +01:00
FixNamespaceComments: 'true'
2021-03-13 19:58:17 +01:00
IndentCaseLabels: 'true'
# Additions by Sam Ellicott
ColumnLimit: 100
2021-05-22 20:44:59 +02:00
# From general dislike from Charles and Cai, I am turning these off
#AlignConsecutiveAssignments: true
#AlignConsecutiveMacros: true
#AlignTrailingComments: true
#AlignOperands: AlignAfterOperator
# Turn off alignment
AlignConsecutiveAssignments: false
AlignConsecutiveMacros: false
AlignTrailingComments: false
2021-03-13 19:58:17 +01:00
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortCaseLabelsOnASingleLine: true
AllowShortLoopsOnASingleLine: true