Modify clang-format config to avoid single-line things. NFC.
parent
bedea1ef3c
commit
ec13839c92
|
@ -10,22 +10,19 @@ ColumnLimit: 100
|
|||
|
||||
# Based on minimizing diff when applying clang-format
|
||||
AccessModifierOffset: -4
|
||||
DerivePointerAlignment: true
|
||||
AlignConsecutiveAssignments: true
|
||||
FixNamespaceComments: true
|
||||
NamespaceIndentation: Inner
|
||||
AllowShortLoopsOnASingleLine: true
|
||||
AlwaysBreakTemplateDeclarations: Yes # MultiLine
|
||||
SpaceAfterTemplateKeyword: false
|
||||
MaxEmptyLinesToKeep: 2
|
||||
IndentPPDirectives: AfterHash
|
||||
AlignEscapedNewlines: DontAlign
|
||||
BreakConstructorInitializers: BeforeColon
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
|
||||
# This one is mixed in its effect: it permits some single-line functions,
|
||||
# but also tends to put, e.g., enums on a single line.
|
||||
AllowShortBlocksOnASingleLine: true
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AlwaysBreakTemplateDeclarations: Yes # MultiLine
|
||||
BreakConstructorInitializers: BeforeColon
|
||||
DerivePointerAlignment: true
|
||||
FixNamespaceComments: true
|
||||
IndentPPDirectives: AfterHash
|
||||
MaxEmptyLinesToKeep: 2
|
||||
NamespaceIndentation: Inner
|
||||
SpaceAfterTemplateKeyword: false
|
||||
|
||||
# No way to remove all space around operators as seen in much of the code I looked at.
|
||||
#SpaceBeforeAssignmentOperators: false
|
||||
|
@ -41,3 +38,4 @@ SortUsingDeclarations: false
|
|||
|
||||
# Hard to tell what the desired config here was.
|
||||
# AllowShortFunctionsOnASingleLine: Inline
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
|
|
Loading…
Reference in New Issue