forked from AcademySoftwareFoundation/openapv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
61 lines (48 loc) · 1.19 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
# .clang-format
# Base style to use
#BasedOnStyle: Google
# Indentation settings
IndentWidth: 4
UseTab: Never
Cpp11BracedListStyle: false
PointerAlignment: Right
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignFunctionPointers: false
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: true
AcrossComments: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignTrailingComments: true
# Break settings
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: false
AfterStruct: false
SplitEmptyFunction: false
AfterFunction: true
BeforeElse: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
# Space settings
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: false
AfterFunctionDefinitionName: false
SpaceAfterCStyleCast: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# Comment settings
CommentPragmas: Preserve
SortIncludes: Never
# Other settings
ColumnLimit: 0 # Disable column limit