-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path.clang-format
More file actions
54 lines (42 loc) · 1.06 KB
/
.clang-format
File metadata and controls
54 lines (42 loc) · 1.06 KB
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
---
# clang-format configuration for RP-Soundboard
# Applies to files in src/ directory only
BasedOnStyle: LLVM
# Indentation
UseTab: ForContinuationAndIndentation
TabWidth: 4
IndentWidth: 4
ContinuationIndentWidth: 4
# Braces
BreakBeforeBraces: Allman
# Line length
ColumnLimit: 120
# Pointers and references
PointerAlignment: Left
ReferenceAlignment: Left
# Includes
SortIncludes: false
IncludeBlocks: Preserve
# Spacing
SpaceAfterCStyleCast: false
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
# Functions
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakAfterReturnType: None
AlignAfterOpenBracket: BlockIndent
# Control statements
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
# Classes
BreakConstructorInitializers: AfterColon
ConstructorInitializerIndentWidth: 4
PackConstructorInitializers: Never
# Macros
SkipMacroDefinitionBody: true
# Other
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignTrailingComments: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2