mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 22:36:10 +01:00
Slightly better clang-format
Notably clang-format will no longer try to place template header onto the same line as the function declaration. Sadly it will still do it for attributes, because it took until clang-format 16 for it to get the relevant option.
This commit is contained in:
parent
ac93f19437
commit
04382af4c6
@ -4,41 +4,42 @@ Standard: c++14
|
|||||||
|
|
||||||
# Note that we cannot use IncludeIsMainRegex functionality, because it
|
# Note that we cannot use IncludeIsMainRegex functionality, because it
|
||||||
# does not support includes in angle brackets (<>)
|
# does not support includes in angle brackets (<>)
|
||||||
SortIncludes: True
|
SortIncludes: true
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '<catch2/.*\.hpp>'
|
- Regex: <catch2/.*\.hpp>
|
||||||
Priority: 1
|
Priority: 1
|
||||||
- Regex: '<.*/.*\.hpp>'
|
- Regex: <.*/.*\.hpp>
|
||||||
Priority: 2
|
Priority: 2
|
||||||
- Regex: '<.*>'
|
- Regex: <.*>
|
||||||
Priority: 3
|
Priority: 3
|
||||||
|
|
||||||
|
|
||||||
AllowShortBlocksOnASingleLine: Always
|
AllowShortBlocksOnASingleLine: Always
|
||||||
AllowShortEnumsOnASingleLine: false
|
AllowShortEnumsOnASingleLine: false
|
||||||
AllowShortFunctionsOnASingleLine: All
|
AllowShortFunctionsOnASingleLine: All
|
||||||
AllowShortIfStatementsOnASingleLine: WithoutElse
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
||||||
AllowShortLambdasOnASingleLine: Inline
|
AllowShortLambdasOnASingleLine: Inline
|
||||||
|
|
||||||
AccessModifierOffset: '-4'
|
AccessModifierOffset: "-4"
|
||||||
AlignEscapedNewlines: Left
|
AlignEscapedNewlines: Left
|
||||||
AllowAllConstructorInitializersOnNextLine: 'true'
|
AllowAllConstructorInitializersOnNextLine: "true"
|
||||||
BinPackArguments: 'false'
|
BinPackArguments: "false"
|
||||||
BinPackParameters: 'false'
|
BinPackParameters: "false"
|
||||||
BreakConstructorInitializers: AfterColon
|
BreakConstructorInitializers: AfterColon
|
||||||
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
|
ConstructorInitializerAllOnOneLineOrOnePerLine: "true"
|
||||||
DerivePointerAlignment: 'false'
|
DerivePointerAlignment: "false"
|
||||||
FixNamespaceComments: 'true'
|
FixNamespaceComments: "true"
|
||||||
IndentCaseLabels: 'false'
|
IndentCaseLabels: "false"
|
||||||
IndentPPDirectives: AfterHash
|
IndentPPDirectives: AfterHash
|
||||||
IndentWidth: '4'
|
IndentWidth: "4"
|
||||||
NamespaceIndentation: All
|
NamespaceIndentation: All
|
||||||
PointerAlignment: Left
|
PointerAlignment: Left
|
||||||
SpaceBeforeCtorInitializerColon: 'false'
|
SpaceBeforeCtorInitializerColon: "false"
|
||||||
SpaceInEmptyParentheses: 'false'
|
SpaceInEmptyParentheses: "false"
|
||||||
SpacesInParentheses: 'true'
|
SpacesInParentheses: "true"
|
||||||
TabWidth: '4'
|
TabWidth: "4"
|
||||||
UseTab: Never
|
UseTab: Never
|
||||||
|
AlwaysBreakTemplateDeclarations: Yes
|
||||||
...
|
SpaceAfterTemplateKeyword: true
|
||||||
|
SortUsingDeclarations: true
|
||||||
|
ReflowComments: true
|
||||||
|
Loading…
Reference in New Issue
Block a user