-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.clang-format
65 lines (64 loc) · 1.69 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
#
# ParaStation
#
# Copyright (C) 2022-2024 ParTec AG, Munich
#
# This file may be distributed under the terms of the Q Public License
# as defined in the file LICENSE.QPL included in the packaging of this
# file.
---
BasedOnStyle: LLVM
AlignTrailingComments: true
AlignEscapedNewlines: 'Right'
AlignConsecutiveAssignments: 'AcrossComments'
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignAfterOpenBracket: true
AlignOperands: 'Align'
PointerAlignment: Right
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: 'AllIfsAndElse'
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortLoopsOnASingleLine: true
PenaltyReturnTypeOnItsOwnLine: 100
PenaltyBreakAssignment: 100
PenaltyExcessCharacter: 50
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyIndentedWhitespace: 0
PenaltyBreakString: 10
PenaltyBreakComment: 10
ColumnLimit: 80
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
BinPackParameters: true
InsertBraces: true
BreakBeforeBraces: 'Custom'
BraceWrapping:
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeTernaryOperators: true
IndentCaseLabels: false
IndentWidth: '4'
ForEachMacros: ['list_for_each_safe',
'list_for_each']
Language: Cpp
SpaceBeforeParens: 'ControlStatements'
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInSquareBrackets: false
SortIncludes: 'Never'
MaxEmptyLinesToKeep: '2'
...