colorchord/.clang-format

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2021-03-13 18:58:17 +00:00
# Basic style rules by Charles Lohr
2021-03-13 15:54:50 +00: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 18:44:59 +00:00
# this is just atrocious
#SpacesInCStyleCastParentheses: 'true'
2021-03-13 15:54:50 +00:00
SpacesInContainerLiterals: 'true'
SpacesInParentheses: 'true'
SpacesInSquareBrackets: 'true'
TabWidth: '4'
UseTab: AlignWithSpaces
2021-03-13 15:54:50 +00:00
FixNamespaceComments: 'true'
2021-03-13 18:58:17 +00:00
IndentCaseLabels: 'true'
# Additions by Sam Ellicott
ColumnLimit: 100
2021-05-22 18:44:59 +00: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 18:58:17 +00:00
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortCaseLabelsOnASingleLine: true
AllowShortLoopsOnASingleLine: true