Skip to content

Commit ab09a62

Browse files
committed
Add .clang-format to 0.11-devel
1 parent b19419c commit ab09a62

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.clang-format

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# BasedOnStyle: Google
2+
AccessModifierOffset: -1
3+
ConstructorInitializerIndentWidth: 4
4+
AlignEscapedNewlinesLeft: true
5+
AlignTrailingComments: true
6+
AllowAllParametersOfDeclarationOnNextLine: true
7+
AllowShortIfStatementsOnASingleLine: true
8+
AllowShortLoopsOnASingleLine: true
9+
AlwaysBreakTemplateDeclarations: true
10+
AlwaysBreakBeforeMultilineStrings: true
11+
BreakBeforeBinaryOperators: false
12+
BreakConstructorInitializersBeforeComma: false
13+
BinPackParameters: true
14+
ColumnLimit: 80
15+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
16+
DerivePointerBinding: true
17+
ExperimentalAutoDetectBinPacking: false
18+
IndentCaseLabels: true
19+
MaxEmptyLinesToKeep: 1
20+
NamespaceIndentation: All
21+
ObjCSpaceBeforeProtocolList: false
22+
PenaltyBreakComment: 60
23+
PenaltyBreakString: 1000
24+
PenaltyBreakFirstLessLess: 120
25+
PenaltyExcessCharacter: 1000000
26+
PenaltyReturnTypeOnItsOwnLine: 200
27+
PointerBindsToType: true
28+
SpacesBeforeTrailingComments: 2
29+
Cpp11BracedListStyle: true
30+
Standard: Auto
31+
IndentWidth: 2
32+
TabWidth: 8
33+
UseTab: false
34+
BreakBeforeBraces: Attach
35+
IndentFunctionDeclarationAfterType: true
36+
SpacesInParentheses: false
37+
SpaceInEmptyParentheses: false
38+
SpacesInCStyleCastParentheses: false
39+
SpaceAfterControlStatementKeyword: true

0 commit comments

Comments
 (0)