-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
43 lines (30 loc) · 1.16 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
# Specify the base style as LLVM
BasedOnStyle: LLVM
# Set the indentation width to 4 spaces
IndentWidth: 4
# Use spaces for indentation, not tabs
UseTab: Never
# Include spaces inside parentheses
SpacesInParentheses: false
# Configure brace wrapping options
BraceWrapping:
# Do not put braces on a new line after control statements (e.g., if, for)
AfterControlStatement: false
# Do not put braces on a new line after function declarations
AfterFunction: false
# Do not allow short if statements to be on a single line
AllowShortIfStatementsOnASingleLine: false
# Allow short loops to be on a single line
AllowShortLoopsOnASingleLine: true
# Allow short functions to be written on a single line (inline)
AllowShortFunctionsOnASingleLine: Inline
# Indent template declarations with respect to the template keyword
AlwaysBreakTemplateDeclarations: true
# Set the width of the indentation for continuations (i.e., lines starting with operators)
ContinuationIndentWidth: 4
# Indent case labels by one level
IndentCaseLabels: true
# Align pointers to the type they point to
PointerAlignment: Left
# Keep function parameters on the same line if possible
BinPackParameters: true