-
-
Notifications
You must be signed in to change notification settings - Fork 689
Expand file tree
/
Copy path.clang-format
More file actions
49 lines (41 loc) · 1.26 KB
/
Copy path.clang-format
File metadata and controls
49 lines (41 loc) · 1.26 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
---
Language: Cpp
BasedOnStyle: LLVM
# Indentation
IndentWidth: 4
TabWidth: 4
UseTab: Never
ContinuationIndentWidth: 4
IndentCaseLabels: false
# Braces - Allman style (opening brace on its own line)
BreakBeforeBraces: Allman
# Pointers / references attached to type: int* p
PointerAlignment: Left
ReferenceAlignment: Left
# Spaces
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpaceAfterCStyleCast: false
# Alignment - align consecutive declarations and assignments in a block
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
# Do not reformat/re-wrap long lines - preserve original line breaks
ColumnLimit: 0
# Short constructs: always require braces (matching repo style)
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
# Includes: do not reorder
SortIncludes: Never
IncludeBlocks: Preserve