-
Notifications
You must be signed in to change notification settings - Fork 8
/
.clang-format
35 lines (29 loc) · 850 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
# Copyright (c) 2023 Mikhail Svetkin
# SPDX-License-Identifier: MIT
---
Language: Cpp
BasedOnStyle: Google
AlignConsecutiveBitFields: Consecutive
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
DerivePointerAlignment: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(cxx)/'
Priority: 1
- Regex: '^".*\.(h|hpp)"'
Priority: 2
- Regex: '^<fmt.*\.h>'
Priority: 3
- Regex: '^<catch2.*\.hpp>'
Priority: 4
- Regex: '^<.*\.h>'
Priority: 6
- Regex: '^<.*>'
Priority: 5
PackConstructorInitializers: Never
PointerAlignment: Right
ShortNamespaceLines: 0