-
Notifications
You must be signed in to change notification settings - Fork 80
/
.clang-format
31 lines (29 loc) · 940 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
BasedOnStyle : google
IndentWidth : 3
BreakBeforeBraces : Linux
KeepEmptyLinesAtTheStartOfBlocks : true
MaxEmptyLinesToKeep : 2
AccessModifierOffset : -2
UseTab: Never
AllowShortIfStatementsOnASingleLine : true
ConstructorInitializerAllOnOneLineOrOnePerLine : true
AllowShortFunctionsOnASingleLine : true
AllowShortLoopsOnASingleLine : false
AllowShortCaseLabelsOnASingleLine : true
#AllowShortLambdasOnASingleLine : true
AllowAllParametersOfDeclarationOnNextLine : false
AlignTrailingComments : true
ColumnLimit : 0
PenaltyBreakBeforeFirstCallParameter : 100
PenaltyReturnTypeOnItsOwnLine : 65000
PenaltyBreakString : 10
SortIncludes : false
IndentCaseLabels : true
# These improve formatting results but require clang 3.6/7 or higher
BreakBeforeBinaryOperators : None
AlignAfterOpenBracket: true
BinPackArguments : true
BinPackParameters : true
AlignOperands : true
AlwaysBreakTemplateDeclarations : true
Cpp11BracedListStyle : true