Skip to content

Commit 542d4bb

Browse files
committed
fixes
1 parent bcd18f8 commit 542d4bb

2 files changed

Lines changed: 95 additions & 2 deletions

File tree

tests/.config/base.clang-format

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,93 @@
11
---
22
Language: Cpp
3-
BasedOnStyle: file:base.clang-format
4-
ColumnLimit: 0
3+
BasedOnStyle: Google
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: DontAlign
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveBitFields: None
8+
AlignConsecutiveDeclarations: None
9+
AlignConsecutiveMacros: None
10+
AlignOperands: DontAlign
11+
AlignTrailingComments: false
12+
AllowShortBlocksOnASingleLine: Always
13+
AllowShortCaseLabelsOnASingleLine: true
14+
AllowShortEnumsOnASingleLine: true
15+
AllowShortFunctionsOnASingleLine: All
16+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortLoopsOnASingleLine: true
19+
AlwaysBreakAfterReturnType: None
20+
# AlwaysBreakBeforeMultilineStrings: false
21+
AlwaysBreakTemplateDeclarations: MultiLine
22+
AttributeMacros: []
23+
BinPackArguments: true
24+
BinPackParameters: true
25+
BitFieldColonSpacing: Both
26+
BreakBeforeBinaryOperators: None
27+
BreakBeforeBraces: Attach
28+
BreakBeforeConceptDeclarations: false
29+
BreakBeforeTernaryOperators: true
30+
BreakConstructorInitializers: AfterColon
31+
BreakInheritanceList: AfterColon
32+
BreakStringLiterals: false
33+
CompactNamespaces: true
34+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
35+
ConstructorInitializerIndentWidth: 2
36+
ContinuationIndentWidth: 2
37+
Cpp11BracedListStyle: true
38+
DerivePointerAlignment: true
39+
EmptyLineAfterAccessModifier: Never
40+
EmptyLineBeforeAccessModifier: Never
41+
FixNamespaceComments: false
42+
ForEachMacros: []
43+
IncludeBlocks: Preserve
44+
IndentCaseBlocks: false
45+
IndentCaseLabels: false
46+
IndentGotoLabels: false
47+
IndentWidth: 2
48+
IndentWrappedFunctionNames: false
49+
InsertTrailingCommas: None
50+
# LambdaBodyIndentation: OuterScope
51+
KeepEmptyLinesAtTheStartOfBlocks: false
52+
MaxEmptyLinesToKeep: 0
53+
NamespaceIndentation: None
54+
PackConstructorInitializers: BinPack
55+
PenaltyBreakAssignment: 1
56+
PenaltyBreakBeforeFirstCallParameter: 1
57+
# PenaltyBreakComment: 300
58+
PenaltyBreakFirstLessLess: 1
59+
PenaltyBreakOpenParenthesis: 1
60+
# PenaltyBreakString: 1000
61+
PenaltyExcessCharacter: 1000000
62+
# PenaltyIndentedWhitespace: 1000
63+
PenaltyReturnTypeOnItsOwnLine: 200
64+
PointerAlignment: Left
65+
# QualifierAlignment: Left
66+
# ReflowComments: false
67+
ReferenceAlignment: Left
68+
RemoveBracesLLVM: true
69+
SeparateDefinitionBlocks: Never
70+
SortIncludes: false
71+
SortUsingDeclarations: false
72+
SpaceAfterCStyleCast: false
73+
SpaceAfterLogicalNot: false
74+
SpaceAfterTemplateKeyword: false
75+
SpaceAroundPointerQualifiers: Default
76+
SpaceBeforeAssignmentOperators: true
77+
SpaceBeforeCaseColon: false
78+
SpaceBeforeCpp11BracedList: false
79+
SpaceBeforeCtorInitializerColon: false
80+
SpaceBeforeInheritanceColon: false
81+
SpaceBeforeParens: ControlStatementsExceptControlMacros
82+
SpaceBeforeRangeBasedForLoopColon: true
83+
SpaceBeforeSquareBrackets: false
84+
SpaceInEmptyBlock: false
85+
SpaceInEmptyParentheses: false
86+
SpacesBeforeTrailingComments: 1
87+
SpacesInAngles: false
88+
SpacesInCStyleCastParentheses: false
89+
SpacesInContainerLiterals: false
90+
SpacesInParentheses: false
91+
SpacesInSquareBrackets: false
92+
Standard: c++20
593
...

tests/.config/main.clang-format

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: file:base.clang-format
4+
ColumnLimit: 0
5+
...

0 commit comments

Comments
 (0)