This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
67 lines (63 loc) · 1.85 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
62
63
64
65
66
67
UseTab: false
IndentWidth: 2
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
SpacesInAngles: true
AlwaysBreakTemplateDeclarations: Yes
# PackConstructorInitializers: false # clang 14
FixNamespaceComments: false
IncludeBlocks: Merge
NamespaceIndentation: All
# IncludeBlocks: Regroup
#
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakAfterReturnType: None
AlignAfterOpenBracket: DontAlign
# InitializerList
BreakConstructorInitializers: AfterColon
PackConstructorInitializers: Never # clang 14
# AllowAllConstructorInitializersOnNextLine: false # clang-format up to 9 - deprecated
# ConstructorInitializerAllOnOneLineOrOnePerLine: false # deprecated
BinPackArguments: false
AllowAllArgumentsOnNextLine: false
BinPackParameters: false
AlignTrailingComments: true
# Taste
BreakBeforeBraces: Allman # Allman, Attach
# BreakBeforeBraces: Custom # Allman, Attach
# BraceWrapping:
# AfterCaseLabel: true
# AfterClass: true
# AfterControlStatement: Always
# AfterEnum: true
# AfterFunction: true
# AfterNamespace: true
# AfterObjCDeclaration: true
# AfterStruct: true
# AfterUnion: true
# AfterExternBlock : true
# BeforeCatch: false
# BeforeElse: false
# BeforeLambdaBody: false
# BeforeWhile: false
# IndentBraces: false
# SplitEmptyFunction: false
# SplitEmptyRecord: false
# SplitEmptyNamespace: false
SpaceAfterTemplateKeyword: false
DerivePointerAlignment: true
ColumnLimit: 120
PointerAlignment: Left
MaxEmptyLinesToKeep: 1
UseCRLF: false
# InsertBraces: true # clang-format 15 + achtung! possible compilation errors
IncludeCategories:
- Regex: '<[[:alnum:].]+>'
Priority: -1
- Regex: '.*'
Priority: 1
SortPriority: 0
# CaseSensitive: true