-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
54 lines (47 loc) · 1.45 KB
/
.clang-format
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
---
Language: Cpp
BasedOnStyle: WebKit
AlignAfterOpenBracket: AlwaysBreak
AlwaysBreakAfterReturnType: TopLevelDefinitions
AlignEscapedNewlines: Left
AlignTrailingComments: 'true'
AllowAllConstructorInitializersOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ColumnLimit: '120'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IncludeCategories:
# 1. Related header
# Handled by the default IncludeIsMainRegex regex, and auto-assigned
# Priority 0
# 2. C++ standard library headers
# angle brackets, no directory, no extension
- Regex: '^<[A-Za-z0-9_-]+>$'
Priority: 2
# 3. C system headers
# angle brackets, no directory, end with ".h"
- Regex: '^<[A-Za-z0-9_-]+\.h>$'
Priority: 3
# 4. Pixar + USD headers
- Regex: '^<pxr/'
Priority: 4
# 5. All private headers
- Regex: '^"'
Priority: 5
# 6. Other libraries' headers
- Regex: '^<'
Priority: 6
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
UseTab: Never