-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
60 lines (51 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## clang-format configurator v2 https://clang-format-configurator.site/
## see https://clang.llvm.org/docs/ClangFormatStyleOptions.html
---
BasedOnStyle: LLVM
Standard: c++20
ColumnLimit: 0
# ColumnLimit: 120
MaxEmptyLinesToKeep: 5
## Indentation settings
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
IndentPPDirectives: AfterHash
PPIndentWidth: 2
ObjCBlockIndentWidth: 4
## Alignment and breaking options
# AlignAfterOpenBracket: DontAlign
AlignAfterOpenBracket: BlockIndent
AlignOperands: AlignAfterOperator
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: false
AlignConsecutiveMacros:
Enabled: true
AlignEscapedNewlines: Left
AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Always
AllowShortLoopsOnASingleLine: true
## Allow all elements on separate lines
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
## Disable bin packing to ensure each parameter is on a new line
BinPackArguments: false
BinPackParameters: false
## Break before braces and other style options
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: false
SplitEmptyFunction: false
BreakConstructorInitializers: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Cpp11BracedListStyle: false
## Insert braces and new lines
InsertBraces: true
InsertNewlineAtEOF: true
PointerAlignment: Left
## Specific settings for function calls and declarations
BreakAfterJavaFieldAnnotations: false
ExperimentalAutoDetectBinPacking: false