-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy path.clang-format
41 lines (41 loc) · 1.03 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
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignConsecutiveAssignments: Consecutive
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Attach
BreakBeforeBinaryOperators: None
ColumnLimit: 90
ExperimentalAutoDetectBinPacking: true
FixNamespaceComments: true
IndentWidth: 2
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ReflowComments: true
PenaltyBreakComment: 1
PenaltyBreakOpenParenthesis: 1 # modified; was 0
SortIncludes: CaseSensitive
SortUsingDeclarations: true
SpacesBeforeTrailingComments: 1
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
TabWidth: 2
UseTab: Never
AttributeMacros: ['__host__', '__device__', '__global__', '__forceinline__']
QualifierOrder:
- static
- inline
- constexpr
- const
- type
QualifierAlignment: Custom
...