-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.clang-format
More file actions
39 lines (31 loc) · 812 Bytes
/
Copy path.clang-format
File metadata and controls
39 lines (31 loc) · 812 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
32
33
34
35
36
37
38
39
---
BasedOnStyle: Google
# indentation:
IndentWidth: 4
AccessModifierOffset: -4
IndentWrappedFunctionNames: 'true'
IndentCaseLabels: 'true'
NamespaceIndentation: Inner
# includes:
SortIncludes: 'true'
IncludeBlocks: Regroup
# Must be 75 characters or less!
ColumnLimit: 75
# use \n instead of \r\n
UseCRLF: false
# spaces, not tabs!
UseTab: Never
# if (x) doStuff() is not allowed, bad style
AllowShortIfStatementsOnASingleLine: false
# change the next line to All for Alistair's textbook style
# AlwaysBreakAfterReturnType: TopLevelDefinitions
AlwaysBreakAfterReturnType: None
# others
DerivePointerAlignment: 'true'
FixNamespaceComments: 'true'
SortUsingDeclarations: 'true'
PointerAlignment: Left
ReferenceAlignment: Left
SpaceAfterLogicalNot: 'true'
SpaceAfterTemplateKeyword: 'true'
Standard: Auto