forked from shader-slang/slang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
41 lines (32 loc) · 824 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
37
38
39
40
41
BasedOnStyle: LLVM
# Whitespace
MaxEmptyLinesToKeep: 2
IndentWidth: 4
ColumnLimit: 100
# Preprocessor
AlignEscapedNewlines: Left
IncludeBlocks: Regroup
# Functions
AllowAllArgumentsOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false
PenaltyReturnTypeOnItsOwnLine: 9999999
PenaltyBreakBeforeFirstCallParameter: 6
AllowShortFunctionsOnASingleLine: Inline
# Brackets and braces
AlignAfterOpenBracket: AlwaysBreak
BreakBeforeBraces: Allman
# Pointers
PointerAlignment: Left
# Classes
PackConstructorInitializers: NextLineOnly
BreakConstructorInitializers: BeforeComma
AccessModifierOffset: -4
# Switch statements
IndentCaseBlocks: true
# Templates
SpaceAfterTemplateKeyword: false
AlwaysBreakTemplateDeclarations: true
# Misc
SortUsingDeclarations: false