forked from pritzza/Rodent-Raytracer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
45 lines (38 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
43
44
45
BasedOnStyle: LLVM
IndentWidth: 4
ContinuationIndentWidth: 4
PointerAlignment: Left
ColumnLimit: 80
# Function declaration and definition
AlignAfterOpenBracket: BlockIndent
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000 # add big penalty so that return type never has its own line
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
MaxEmptyLinesToKeep: 1
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterEnum: true
AfterStruct: true
AfterFunction: false
AfterNamespace: true
SplitEmptyFunction: true
SeparateDefinitionBlocks: Always
SortIncludes: CaseSensitive
# multipel declarations are aligned to right
# AlignConsecutiveDeclarations:
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: false
# AlignCompound: true
# PadOperators: true