-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
42 lines (36 loc) · 857 Bytes
/
.clang-format
File metadata and controls
42 lines (36 loc) · 857 Bytes
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
---
# Based on LLVM style with C++20 modifications
BasedOnStyle: LLVM
Language: Cpp
Standard: c++20
# Indentation
IndentWidth: 2
TabWidth: 2
UseTab: Never
ColumnLimit: 100
# Braces
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# Spacing
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
# Includes
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*>'
Priority: 2
- Regex: '.*'
Priority: 3
# Pointers and references
DerivePointerAlignment: false
PointerAlignment: Left
# Namespaces
NamespaceIndentation: None
CompactNamespaces: false