-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.clang-format
More file actions
71 lines (62 loc) · 1.83 KB
/
.clang-format
File metadata and controls
71 lines (62 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
BasedOnStyle: LLVM
Language: Cpp
Standard: c++17
# Indentation - Uses tabs
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
AccessModifierOffset: -4
NamespaceIndentation: None
IndentCaseLabels: false
IndentPPDirectives: None
IndentWrappedFunctionNames: false
IndentAccessModifiers: false
# Braces - Allman style (opening braces on new line)
BreakBeforeBraces: Allman
# Line breaking - No column limit to preserve current long lines
ColumnLimit: 0
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: No
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
AllowAllParametersOfDeclarationOnNextLine: true
# Spacing
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInAngles: Never
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
# Alignment - Disabled to match current style
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: None
AlignTrailingComments: false
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
PointerAlignment: Left
DerivePointerAlignment: false
ReferenceAlignment: Left
# Short constructs
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
# Includes - Do not sort, preserve current order
SortIncludes: Never
IncludeBlocks: Preserve
# Comments and empty lines
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 2
ReflowComments: false
EmptyLineBeforeAccessModifier: Never
EmptyLineAfterAccessModifier: Never
# Other formatting
Cpp11BracedListStyle: true
CompactNamespaces: false
FixNamespaceComments: false
IndentGotoLabels: false