-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
61 lines (47 loc) · 1.92 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
61
---
# https://gist.github.com/kjk/298216da8cb4c665075b#file-3-5-llvm-txt
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 2
TabWidth: 2
ColumnLimit: 79
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
AccessModifierOffset: -1
ContinuationIndentWidth: 2
BreakBeforeBraces: Attach
InsertBraces: true
BinPackArguments: false
BinPackParameters: false
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignafteropenbracket
AlignAfterOpenBracket: BlockIndent
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#allowallargumentsonnextline
AllowAllArgumentsOnNextLine: false
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#allowallparametersofdeclarationonnextline
AllowAllParametersOfDeclarationOnNextLine: false
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#separatedefinitionblocks
SeparateDefinitionBlocks: Always
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removeparentheses
EmptyLineBeforeAccessModifier: Always
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removesemicolon
RemoveSemicolon: true
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removeparentheses
RemoveParentheses: ReturnStatement
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignoperands
AlignOperands: DontAlign
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#requiresexpressionindentation
RequiresExpressionIndentation: OuterScope
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alwaysbreaktemplatedeclarations
AlwaysBreakTemplateDeclarations: Yes
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#fixnamespacecomments
FixNamespaceComments: true
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#namespaceindentation
NamespaceIndentation: None
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#reflowcomments
ReflowComments: false
---
Language: Cpp
Standard: c++20
DerivePointerAlignment: false
PointerAlignment: Left
...