-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
60 lines (60 loc) · 1.79 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
# The commented options are only available in the latest version of clang-format
# (Version 6) as of this time. Please update them whenever the version available
# in Ubuntu LTS is updated.
---
Language: Cpp
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterStruct: false
AfterUnion: false
BeforeElse: true
IndentBraces: false
BreakAfterJavaFieldAnnotations: false # For Doxygen Java @ style keywords
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: false
BreakStringLiterals: false
ColumnLimit: 79
DerivePointerAlignment: false
# IncludeBlocks: Regroup
IndentCaseLabels: false
# IndentPPDirectives: AfterHash
IndentWidth: 4
IndentWrappedFunctionNames: false
ContinuationIndentWidth: 8
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: "^((BEGIN|START)_.*|.*_(BEGIN|START))$"
MacroBlockBegin: "^((END|STOP)_.*|.*_(END|STOP))$"
MaxEmptyLinesToKeep: 3
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: Never
...