forked from managarm/mlibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
36 lines (28 loc) · 837 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
32
33
34
35
36
---
BasedOnStyle: LLVM
Language: Cpp
ColumnLimit: 100
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
ContinuationIndentWidth: 4
ConstructorInitializerIndentWidth: 0
IndentCaseLabels: true
# Do not indent "public", "private", etc.
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
# Put template<> on its own line.
BreakTemplateDeclarations: Yes
# Put long return types on their own line.
BreakAfterReturnType: Automatic
# Put binary operators at the start of the line.
BreakBeforeBinaryOperators: NonAssignment
# Put all initializers onto their own lines.
PackConstructorInitializers: CurrentLine
# Put all function arguments on their own lines.
BinPackArguments: false
BinPackParameters: false
# Format braces as {1, 2, 3}, not as { 1, 2, 3 }.
Cpp11BracedListStyle: true
# Force \n at EOF.
InsertNewlineAtEOF: true