Skip to content

Commit 9a27c0b

Browse files
committed
Add clang-format
1 parent 8ee12d4 commit 9a27c0b

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.clang-format

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -1
4+
AlignAfterOpenBracket: true
5+
AlignConsecutiveAssignments: false
6+
AlignEscapedNewlinesLeft: true
7+
AlignOperands: true
8+
AlignTrailingComments: true
9+
AllowAllParametersOfDeclarationOnNextLine: true
10+
AllowShortBlocksOnASingleLine: false
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: None
13+
AllowShortIfStatementsOnASingleLine: true
14+
AllowShortLoopsOnASingleLine: true
15+
AlwaysBreakAfterDefinitionReturnType: None
16+
AlwaysBreakBeforeMultilineStrings: true
17+
AlwaysBreakTemplateDeclarations: true
18+
BinPackArguments: true
19+
BinPackParameters: true
20+
BreakBeforeBinaryOperators: None
21+
BreakBeforeBraces: Attach
22+
BreakBeforeTernaryOperators: true
23+
BreakConstructorInitializersBeforeComma: false
24+
ColumnLimit: 100
25+
CommentPragmas: '^ IWYU pragma:'
26+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
27+
ConstructorInitializerIndentWidth: 4
28+
ContinuationIndentWidth: 4
29+
Cpp11BracedListStyle: true
30+
DerivePointerAlignment: true
31+
DisableFormat: false
32+
ExperimentalAutoDetectBinPacking: false
33+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
34+
IndentCaseLabels: true
35+
IndentWidth: 4
36+
IndentWrappedFunctionNames: false
37+
KeepEmptyLinesAtTheStartOfBlocks: true
38+
MacroBlockBegin: ''
39+
MacroBlockEnd: ''
40+
MaxEmptyLinesToKeep: 1
41+
NamespaceIndentation: None
42+
PenaltyBreakBeforeFirstCallParameter: 1
43+
PenaltyBreakComment: 300
44+
PenaltyBreakFirstLessLess: 120
45+
PenaltyBreakString: 1000
46+
PenaltyExcessCharacter: 1000000
47+
PenaltyReturnTypeOnItsOwnLine: 200
48+
PointerAlignment: Left
49+
SpaceAfterCStyleCast: false
50+
SpaceBeforeAssignmentOperators: true
51+
SpaceBeforeParens: ControlStatements
52+
SpaceInEmptyParentheses: false
53+
SpacesBeforeTrailingComments: 2
54+
SpacesInAngles: false
55+
SpacesInContainerLiterals: true
56+
SpacesInCStyleCastParentheses: false
57+
SpacesInParentheses: false
58+
SpacesInSquareBrackets: false
59+
Standard: Auto
60+
TabWidth: 4
61+
UseTab: Never
62+
SortIncludes: false
63+
...
64+

0 commit comments

Comments
 (0)