-
Notifications
You must be signed in to change notification settings - Fork 11
/
.clang-format
31 lines (30 loc) · 1004 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
31
#adapted from https://github.com/LLNL/SAMRAI/pull/87 (4/8/2020)
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 : 80
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