forked from inclavare-containers/rats-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
165 lines (164 loc) · 6.29 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# SPDX-License-Identifier: GPL-2.0
#
# clang-format configuration file. Intended for clang-format >= 9.
# Refer to https://github.com/torvalds/linux/blob/master/.clang-format
#
# For more information, see:
#
# Documentation/process/clang-format.rst
# https://clang.llvm.org/docs/ClangFormat.html
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
---
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
#AlignConsecutiveBitFields: None # Unknown to clang-format-9.0
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true # Unknown to clang-format-6.0
AlignEscapedNewlines: Left # Unknown to clang-format-4.0
AlignOperands: true
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false # Unknown to clang-format-6.0
AllowAllConstructorInitializersOnNextLine: false # Unknown to clang-format-6.0
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
#AllowShortEnumsOnASingleLine: truetrue # Unknown to clang-format-9.0
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLambdasOnASingleLine: None # Unknown to clang-format-6.0
AllowShortLoopsOnASingleLine: false
#AlwaysBreakAfterDefinitionReturnType: None # Deprecated
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
#AttributeMacros: ['__trusted', '__untrusted'] # Unused
BinPackArguments: true
BinPackParameters: true
#BitFieldColonSpacing: None # Unknown to clang-format-9.0
BraceWrapping:
AfterCaseLabel: false # Unknown to clang-format-6.0
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false # Unknown to clang-format-5.0
BeforeCatch: false
#BeforeLambdaBody: false # Unknown to clang-format-9.0
#BeforeWhile: false # Unknown to clang-format-9.0
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true # Unknown to clang-format-4.0
SplitEmptyRecord: true # Unknown to clang-format-4.0
SplitEmptyNamespace: true # Unknown to clang-format-4.0
BreakAfterJavaFieldAnnotations: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
#BreakBeforeConceptDeclarations: false # Unknown to clang-format-9.0
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
BreakInheritanceList: BeforeColon # Unknown to clang-format-6.0
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: false
ColumnLimit: 100
CommentPragmas: '^ IC pragma:'
CompactNamespaces: false # Unknown to clang-format-4.0
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
#DeriveLineEnding: false # Unknown to clang-format-9.0
DerivePointerAlignment: false
DisableFormat: false
#EmptyLineAfterAccessModifier: Never # Unknown to clang-format-9.0
#EmptyLineBeforeAccessModifier: LogicalBlock # Unknown to clang-format-9.0
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false # Unknown to clang-format-4.0
ForEachMacros: ['foreach', 'FOREACH']
IncludeBlocks: Preserve # Unknown to clang-format-5.0
IncludeCategories:
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
#IncludeIsMainSourceRegex: # Not required
#IndentAccessModifiers: true # Unknown to clang-format-9.0
#IndentCaseBlocks: false # Unknown to clang-format-9.0
IndentCaseLabels: false
#IndentExternBlock: Indent # Unknown to clang-format-9.0
#IndentGotoLabels: false # Unknown to clang-format-9.0
IndentPPDirectives: BeforeHash # Unknown to clang-format-6.0
#IndentRequires: false # Unknown to clang-format-9.0
IndentWidth: 8
IndentWrappedFunctionNames: false
#InsertTrailingCommas: Wrapped # Unknown to clang-format-9.0
JavaImportGroups: ['com.example', 'com', 'org'] # Unknown to clang-format-6.0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
#Language: # Not required
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
#NamespaceMacros: # Not required
ObjCBinPackProtocolList: Auto # Unknown to clang-format-6.0
ObjCBlockIndentWidth: 8
#ObjCBreakBeforeNestedBlockParam: 8 # Unknown to clang-format-9.0
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
# Taken from git's rules
PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
PenaltyBreakBeforeFirstCallParameter: 30
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyBreakTemplateDeclaration: 10 # Unknown to clang-format-6.0
PenaltyExcessCharacter: 100
#PenaltyIndentedWhitespace: 0 # Unknown to clang-format-9.0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
#RawStringFormats: # Not required
ReflowComments: false
#ShortNamespaceLines: 1 # Unknown to clang-format-9.0
SortIncludes: false
#SortJavaStaticImport: Before # Unknown to clang-format-9.0
SortUsingDeclarations: false # Unknown to clang-format-4.0
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false # Unknown to clang-format-6.0
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
#SpaceBeforeCaseColon: false # Unknown to clang-format-9.0
SpaceBeforeCpp11BracedList: true # Unknown to clang-format-6.0
SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-6.0
SpaceBeforeInheritanceColon: true # Unknown to clang-format-6.0
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-6.0
#SpaceBeforeSquareBrackets: false # Unknown to clang-format-9.0
SpaceInEmptyParentheses: false
#SpaceInEmptyBlock: true # Unknown to clang-format-9.0
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
#SpacesInConditionalStatement: false # Unknown to clang-format-9.0
SpacesInContainerLiterals: false
#SpacesInLineCommentPrefix: # Unknown to clang-format-9.0
# - Minimum: 1
# - Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp03
#StatementAttributeLikeMacros: # Not required
#StatementMacros: # Not required
TabWidth: 8
#TypenameMacros: # Not required
#UseCRLF: false # Unknown to clang-format-9.0
UseTab: Always
#WhitespaceSensitiveMacros: # Not required
...