-
Notifications
You must be signed in to change notification settings - Fork 8
/
.clang-format
42 lines (41 loc) · 1.15 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
BasedOnStyle: Google
IndentWidth: 4
TabWidth: 4
UseTab: Never
AllowShortIfStatementsOnASingleLine: false
BreakBeforeBraces: Allman
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpaceInEmptyParentheses: false
PointerAlignment: Right
IndentCaseLabels: true
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortLoopsOnASingleLine: false
BreakBeforeBinaryOperators: None
ColumnLimit: 80
DerivePointerAlignment: false
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^".*\.h"'
Priority: 2
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SortIncludes: true
# Custom settings for breaking long lines
BinPackArguments: false
PenaltyBreakBeforeFirstCallParameter: 0
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyBreakFirstLessLess: 0
PenaltyBreakAssignment: 0
ContinuationIndentWidth: 4
AllowAllParametersOfDeclarationOnNextLine: true
BreakBeforeTernaryOperators: true
AlwaysBreakAfterReturnType: None
BreakConstructorInitializers: BeforeColon