Skip to content

Commit ac8dcde

Browse files
committed
Add missing clang-format config
1 parent 954fb9a commit ac8dcde

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.clang-format

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

0 commit comments

Comments
 (0)