CI: adjust clang-formatting
- duplicate the file to .base - drop 10-and-later setting that was commented out - specific setting for lambda-formatting (this seems to be the default)
This commit is contained in:
parent
78af510535
commit
236bd0eb96
@ -8,6 +8,7 @@ AlignEscapedNewlines: DontAlign
|
|||||||
AllowAllParametersOfDeclarationOnNextLine: "false"
|
AllowAllParametersOfDeclarationOnNextLine: "false"
|
||||||
AllowShortFunctionsOnASingleLine: Inline
|
AllowShortFunctionsOnASingleLine: Inline
|
||||||
AllowShortIfStatementsOnASingleLine: "false"
|
AllowShortIfStatementsOnASingleLine: "false"
|
||||||
|
AllowShortLambdasOnASingleLine: All
|
||||||
AllowShortLoopsOnASingleLine: "false"
|
AllowShortLoopsOnASingleLine: "false"
|
||||||
AlwaysBreakAfterReturnType: TopLevelDefinitions
|
AlwaysBreakAfterReturnType: TopLevelDefinitions
|
||||||
AlwaysBreakTemplateDeclarations: Yes
|
AlwaysBreakTemplateDeclarations: Yes
|
||||||
@ -28,7 +29,6 @@ ReflowComments: "false"
|
|||||||
SortIncludes: "true"
|
SortIncludes: "true"
|
||||||
SpaceAfterCStyleCast: "false"
|
SpaceAfterCStyleCast: "false"
|
||||||
SpacesBeforeTrailingComments: "2"
|
SpacesBeforeTrailingComments: "2"
|
||||||
# SpaceInEmptyBlock: "true"
|
|
||||||
SpacesInAngles: "true"
|
SpacesInAngles: "true"
|
||||||
SpacesInParentheses: "true"
|
SpacesInParentheses: "true"
|
||||||
SpacesInSquareBrackets: "true"
|
SpacesInSquareBrackets: "true"
|
||||||
|
35
.clang-format.base
Normal file
35
.clang-format.base
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# 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"
|
||||||
|
SpacesBeforeTrailingComments: "2"
|
||||||
|
SpacesInAngles: "true"
|
||||||
|
SpacesInParentheses: "true"
|
||||||
|
SpacesInSquareBrackets: "true"
|
||||||
|
Standard: Cpp11
|
Loading…
Reference in New Issue
Block a user