-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.clang-format
More file actions
31 lines (26 loc) · 891 Bytes
/
Copy path.clang-format
File metadata and controls
31 lines (26 loc) · 891 Bytes
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
# Real men use real tabs.
IndentWidth: 4
TabWidth: 4
UseTab: 'ForIndentation'
# Don't frob with line endings so much.
ColumnLimit: 999
#BinPackArguments: false
#BinPackParameters: false
AllowShortFunctionsOnASingleLine: 'None'
BreakStringLiterals: false
ReflowComments: false
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveShortCaseStatements: {Enabled: true}
AlignEscapedNewlines: 'Left'
# Align asignments and declarations.
AlignConsecutiveAssignments: {Enabled: true, AlignCompound: true}
AlignConsecutiveDeclarations: {Enabled: true, PadOperators: false}
# Star next to the type name, as it's really part of the type.
PointerAlignment: 'Left'
# Indent nested pre-processer
IndentPPDirectives: 'AfterHash'
# Group local ".." includes, and put them after system <..> includes.
IncludeBlocks: 'Regroup'
IncludeCategories: [
{Regex: '^"', Priority: 99, SortPriority: 99},
]