forked from iitp-ppi/nurikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
111 lines (109 loc) · 2.58 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# Project NuriKit - Copyright 2023 SNU Compbio Lab.
# SPDX-License-Identifier: Apache-2.0
#
# Require clang-format v15
---
Language: Cpp
Standard: c++17
BasedOnStyle: Google
DisableFormat: false
ColumnLimit: 80
TabWidth: 2
AccessModifierOffset: -2
AlignArrayOfStructures: Right
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: false
PadOperators: true
AlignEscapedNewlines: Right
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
IncludeCategories:
- Regex: "^<(gtest|gmock)/.*"
Priority: 3
SortPriority: 4
CaseSensitive: false
- Regex: "^<.*/.*"
Priority: 2
SortPriority: 3
CaseSensitive: true
- Regex: '^<.*\..*>'
Priority: 2
SortPriority: 2
CaseSensitive: false
- Regex: "^<.*"
Priority: 1
SortPriority: 1
CaseSensitive: false
- Regex: "^.*config.h"
Priority: 4
SortPriority: 5
CaseSensitive: false
- Regex: "^.*/.*"
Priority: 4
SortPriority: 7
CaseSensitive: false
- Regex: "^.*"
Priority: 4
SortPriority: 6
CaseSensitive: false
IndentCaseLabels: false
# InsertNewlineAtEOF: true # require clang-format v16
# LineEnding: LF # require clang-format v16
NamespaceIndentation: Inner
PackConstructorInitializers: BinPack
PenaltyBreakAssignment: 10
PenaltyBreakBeforeFirstCallParameter: 30
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 80
PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
QualifierAlignment: Custom
QualifierOrder:
- constexpr
- inline
- static
- const
- volatile
- type
- restrict
SortIncludes: CaseInsensitive
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: Custom
SpaceBeforeRangeBasedForLoopColon: false
SpaceInEmptyBlock: true
SpacesInContainerLiterals: false