Skip to content

Commit a9f4b00

Browse files
committed
Initial pass at clang-format config
1 parent f14bd93 commit a9f4b00

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

.clang-format

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

0 commit comments

Comments
 (0)