45aac7db66
In clang-format 10, SpaceInEmptyBlock is introduced, and defaults to true .. which is different from the earlier formatting versions did. For now, refuse clang-format 10, and search specifically also for clang-format-9.0.1 because that's what I have on my laptop. At some point, switch in the config option and then require clang-format 10 or later (because earlier versions refuse to run with an unknown config option)
34 lines
931 B
YAML
34 lines
931 B
YAML
---
|
|
BasedOnStyle: WebKit
|
|
|
|
AlignAfterOpenBracket: Align
|
|
AlignEscapedNewlines: DontAlign
|
|
AllowAllParametersOfDeclarationOnNextLine: "false"
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
AllowShortIfStatementsOnASingleLine: "false"
|
|
AllowShortLoopsOnASingleLine: "false"
|
|
AlwaysBreakAfterReturnType: TopLevelDefinitions
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
BinPackArguments: "false"
|
|
BinPackParameters: "false"
|
|
BreakBeforeBraces: Allman
|
|
BreakBeforeTernaryOperators: "true"
|
|
BreakConstructorInitializers: BeforeComma
|
|
ColumnLimit: 120
|
|
Cpp11BracedListStyle: "false"
|
|
FixNamespaceComments: "true"
|
|
IncludeBlocks: Preserve
|
|
IndentWidth: "4"
|
|
MaxEmptyLinesToKeep: "2"
|
|
NamespaceIndentation: None
|
|
PointerAlignment: Left
|
|
ReflowComments: "false"
|
|
SortIncludes: "true"
|
|
SpaceAfterCStyleCast: "false"
|
|
SpacesBeforeTrailingComments: "2"
|
|
# SpaceInEmptyBlock: "true"
|
|
SpacesInAngles: "true"
|
|
SpacesInParentheses: "true"
|
|
SpacesInSquareBrackets: "true"
|
|
Standard: Cpp11
|