-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
44 lines (41 loc) · 1.31 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
---
Language: Cpp
Standard: c++20
BasedOnStyle: LLVM
# Configurable Format Style Options
# https://releases.llvm.org/11.0.0/tools/clang/docs/ClangFormatStyleOptions.html
ColumnLimit: 120
IndentWidth: 4
ContinuationIndentWidth: 4
AccessModifierOffset: -4
MaxEmptyLinesToKeep: 1
Cpp11BracedListStyle: true
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
BreakInheritanceList: AfterColon
AlignTrailingComments: true
SpaceBeforeParens: ControlStatements
SpaceBeforeCpp11BracedList: false
IndentCaseLabels: false
IndentCaseBlocks: true
SpaceBeforeAssignmentOperators: true
PointerAlignment: Right
SortIncludes: CaseInsensitive
IndentExternBlock: Indent
AllowShortLambdasOnASingleLine: Empty
AllowShortBlocksOnASingleLine: Never
AlwaysBreakAfterReturnType: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
BreakBeforeBinaryOperators: NonAssignment
AlignOperands: Align
BreakBeforeBraces: Attach
NamespaceIndentation: All
AlwaysBreakTemplateDeclarations: Yes
IndentRequiresClause: false
# EmptyLineBeforeAccessModifier: LogicalBlock - Not supported
# SpaceBeforeCaseColon: false - Not supported
# SpaceAroundPointerQualifiers: Default - Not supported