-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
43 lines (43 loc) · 1.32 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
---
BasedOnStyle: Google
AlignAfterOpenBracket: 'AlwaysBreak'
AllowAllConstructorInitializersOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AlignConsecutiveMacros: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: 'None'
AllowShortIfStatementsOnASingleLine: 'Never'
AllowShortLoopsOnASingleLine: 'false'
BreakBeforeBraces: Allman
BinPackArguments: 'false'
BinPackParameters: 'false'
Cpp11BracedListStyle: 'false'
ColumnLimit: 125
IndentWidth: 2
IndentPPDirectives: BeforeHash
NamespaceIndentation: All
PackConstructorInitializers: 'Never'
SpaceAfterTemplateKeyword: 'false'
SpaceBeforeCtorInitializerColon: 'true'
SpaceBeforeInheritanceColon: 'true'
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true'
SpaceInEmptyBlock: true
Standard: 'Latest'
IncludeBlocks: Regroup
IncludeCategories:
# MICM project headers
- Regex: '<(micm)\/'
Priority: 2
# CUDA, cuBLAS, LLVM, OpenMP headers
- Regex: '<(cuda|cublas|llvm|omp)[[:alnum:].(-|_)*]+>'
Priority: 3
# External libraries headers
- Regex: '<[[:alnum:].(-|_)*]+\/'
Priority: 3
# System headers
- Regex: '<[[:alnum:].(-|_)*]+>'
Priority: 4
# Main, local, private headers
- Regex: '".*'
Priority: 1