-
Notifications
You must be signed in to change notification settings - Fork 18
/
.clang-format
38 lines (38 loc) · 1.08 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
IndentWidth: 4
Language: Cpp
DeriveLineEnding: false
UseCRLF: false
UseTab: Never
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<kernel'
Priority: 1
DerivePointerAlignment: false
PointerAlignment: Left
AlignAfterOpenBracket: DontAlign
BreakBeforeBraces: Attach
AlignConsecutiveAssignments: false
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
BreakConstructorInitializers: AfterColon
BreakBeforeBinaryOperators: NonAssignment
ColumnLimit: 100
IndentCaseBlocks: false
IndentCaseLabels: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SpaceBeforeCpp11BracedList: true
AllowAllArgumentsOnNextLine: true
PenaltyBreakAssignment: 100
PenaltyExcessCharacter: 1
SpaceBeforeParens: ControlStatementsExceptForEachMacros
AlignEscapedNewlines: DontAlign
SpaceBeforeSquareBrackets: false
SpacesInContainerLiterals: true
SpaceInEmptyBlock: true
SpacesBeforeTrailingComments: 1
SpaceAfterCStyleCast: true
StatementMacros: ['UNUSED']