c4eee7bb11
- use clang-format12 or 13 or unversioned executable, only - check it's actually 12 or 13 - set language standard explicitly to C++17, "Cpp11" is now an alias for "latest" which is weird This change does lead to some thrashing when applying styles, so I'm not going to do that across the board right now. Changes include: - extra spaces in lambda-captures - nicer alignment of lambda-bodies
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
# SPDX-FileCopyrightText: no
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
---
|
|
BasedOnStyle: WebKit
|
|
|
|
AlignAfterOpenBracket: Align
|
|
AlignEscapedNewlines: DontAlign
|
|
AllowAllParametersOfDeclarationOnNextLine: "false"
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
AllowShortIfStatementsOnASingleLine: "false"
|
|
AllowShortLambdasOnASingleLine: All
|
|
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"
|
|
SpaceInEmptyBlock: "false"
|
|
SpacesBeforeTrailingComments: "2"
|
|
SpacesInAngles: "true"
|
|
SpacesInParentheses: "true"
|
|
SpacesInSquareBrackets: "true"
|
|
Standard: c++17
|