-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.clang-format
More file actions
49 lines (40 loc) · 1.13 KB
/
Copy path.clang-format
File metadata and controls
49 lines (40 loc) · 1.13 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
ConstructorInitializerIndentWidth: 4
NamespaceIndentation: All
IndentCaseLabels: false
AccessModifierOffset: -4
# Column limit
ColumnLimit: 120
# Braces – Allman style (opening brace on its own line)
BreakBeforeBraces: Allman
# Pointer and reference alignment
PointerAlignment: Left
ReferenceAlignment: Left
# Spaces
SpaceBeforeParens: ControlStatements
SpaceAfterTemplateKeyword: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
# Constructor initializers
BreakConstructorInitializers: AfterColon
PackConstructorInitializers: Never
# Template declarations
AlwaysBreakTemplateDeclarations: Yes
# Short constructs
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
# Include sorting – preserve existing order to avoid breaking build dependencies
SortIncludes: Never
...