Skip to content

Commit 7d94483

Browse files
committed
feat: add .clang-format spec
1 parent 6a583d5 commit 7d94483

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

Diff for: .clang-format

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
AccessModifierOffset: -4
2+
AlignAfterOpenBracket: BlockIndent
3+
AlignArrayOfStructures: Left
4+
AlignConsecutiveBitFields: Consecutive
5+
AlignEscapedNewlines: Left
6+
AlignOperands: false
7+
AllowAllArgumentsOnNextLine: true
8+
AllowAllParametersOfDeclarationOnNextLine: true
9+
AllowShortFunctionsOnASingleLine: true
10+
AllowShortBlocksOnASingleLine: Always
11+
AllowShortCaseLabelsOnASingleLine: true
12+
AllowShortEnumsOnASingleLine: true
13+
AllowShortLambdasOnASingleLine: true
14+
AlwaysBreakBeforeMultilineStrings: true
15+
AlwaysBreakTemplateDeclarations: MultiLine
16+
BinPackArguments: false
17+
BinPackParameters: false
18+
BreakAfterAttributes: Leave
19+
BreakBeforeBraces: Attach
20+
BreakBeforeTernaryOperators: false
21+
BreakConstructorInitializers: AfterColon
22+
BreakInheritanceList: BeforeComma
23+
BreakStringLiterals: false
24+
ColumnLimit: 140
25+
CompactNamespaces: true
26+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
27+
ConstructorInitializerIndentWidth: 4
28+
ContinuationIndentWidth: 4
29+
Cpp11BracedListStyle: true
30+
EmptyLineAfterAccessModifier: Never
31+
EmptyLineBeforeAccessModifier: Always
32+
IncludeBlocks: Preserve
33+
IndentCaseLabels: true
34+
IndentPPDirectives: AfterHash
35+
IndentWidth: 4
36+
IndentWrappedFunctionNames: true
37+
InsertBraces: true
38+
InsertNewlineAtEOF: true
39+
InsertTrailingCommas: Wrapped
40+
MaxEmptyLinesToKeep: 1
41+
PackConstructorInitializers: NextLine
42+
PenaltyBreakAssignment: 65
43+
PenaltyBreakBeforeFirstCallParameter: 16
44+
PenaltyBreakComment: 320
45+
PenaltyBreakFirstLessLess: 50
46+
PenaltyBreakString: 0
47+
PenaltyExcessCharacter: 10
48+
PenaltyReturnTypeOnItsOwnLine: 100
49+
PointerAlignment: Left
50+
QualifierAlignment: Left
51+
ReferenceAlignment: Left
52+
SortIncludes: CaseSensitive
53+
SpaceAfterCStyleCast: false
54+
SpaceAfterLogicalNot: false
55+
SpaceAfterTemplateKeyword: true
56+
SpaceAroundPointerQualifiers: Both
57+
SpaceBeforeParens: ControlStatementsExceptForEachMacros
58+
SpacesInAngles: Never
59+
TabWidth: 4
60+
UseCRLF: false
61+
UseTab: AlignWithSpaces

0 commit comments

Comments
 (0)