Skip to content

Commit 4edcb44

Browse files
committed
Added clang-format config
1 parent 114458e commit 4edcb44

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

src/.clang-format

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -2
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlinesLeft: false
8+
AlignOperands: true
9+
AlignTrailingComments: true
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortBlocksOnASingleLine: false
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: Inline
14+
AllowShortIfStatementsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: false
19+
AlwaysBreakTemplateDeclarations: true
20+
BinPackArguments: true
21+
BinPackParameters: true
22+
BraceWrapping:
23+
AfterClass: true
24+
AfterControlStatement: true
25+
AfterEnum: true
26+
AfterFunction: true
27+
AfterNamespace: true
28+
AfterObjCDeclaration: true
29+
AfterStruct: true
30+
AfterUnion: true
31+
BeforeCatch: true
32+
BeforeElse: true
33+
IndentBraces: false
34+
BreakBeforeBinaryOperators: None
35+
BreakBeforeBraces: Custom
36+
BreakBeforeTernaryOperators: false
37+
BreakConstructorInitializersBeforeComma: false
38+
ColumnLimit: 100
39+
CommentPragmas: '^ (IWYU pragma:|NOLINT)'
40+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
41+
ConstructorInitializerIndentWidth: 4
42+
ContinuationIndentWidth: 4
43+
Cpp11BracedListStyle: true
44+
DerivePointerAlignment: false
45+
DisableFormat: false
46+
ForEachMacros: []
47+
IncludeCategories:
48+
- Regex: '^<'
49+
Priority: 1
50+
- Regex: '^"'
51+
Priority: 2
52+
IndentCaseLabels: false
53+
IndentWidth: 2
54+
IndentWrappedFunctionNames: false
55+
KeepEmptyLinesAtTheStartOfBlocks: false
56+
MacroBlockBegin: ''
57+
MacroBlockEnd: ''
58+
MaxEmptyLinesToKeep: 1
59+
NamespaceIndentation: None
60+
ObjCBlockIndentWidth: 2
61+
ObjCSpaceAfterProperty: false
62+
ObjCSpaceBeforeProtocolList: true
63+
PenaltyBreakBeforeFirstCallParameter: 19
64+
PenaltyBreakComment: 300
65+
PenaltyBreakFirstLessLess: 120
66+
PenaltyBreakString: 1000
67+
PenaltyExcessCharacter: 1000000
68+
PenaltyReturnTypeOnItsOwnLine: 60
69+
PointerAlignment: Left
70+
ReflowComments: true
71+
SortIncludes: true
72+
SpaceAfterCStyleCast: false
73+
SpaceBeforeAssignmentOperators: true
74+
SpaceBeforeParens: ControlStatements
75+
SpaceInEmptyParentheses: false
76+
SpacesBeforeTrailingComments: 2
77+
SpacesInAngles: false
78+
SpacesInContainerLiterals: true
79+
SpacesInCStyleCastParentheses: false
80+
SpacesInParentheses: false
81+
SpacesInSquareBrackets: false
82+
Standard: Cpp11
83+
TabWidth: 2
84+
UseTab: Never
85+
...

0 commit comments

Comments
 (0)