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