forked from cwida/FastLanes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
48 lines (47 loc) · 1.3 KB
/
.clang-format
File metadata and controls
48 lines (47 loc) · 1.3 KB
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
BasedOnStyle: LLVM
TabWidth: 4
IndentWidth: 4
UseTab: ForIndentation
DerivePointerAlignment: false
PointerAlignment: Left
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignAfterOpenBracket: Align
AlignTrailingComments: true
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveAssignments: Consecutive
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
ColumnLimit: 120
IncludeBlocks: Merge
SortIncludes: CaseSensitive
Language: Cpp
AccessModifierOffset: -4
BreakConstructorInitializers: BeforeComma
AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
CompactNamespaces: true
BinPackArguments: false
BinPackParameters: false
# CUDA-specific additions
AttributeMacros:
- "__global__"
- "__device__"
- "__host__"
- "__constant__"
- "__shared__"
- "__managed__"
- "__restrict__"
- "__launch_bounds__"
- "__forceinline__"
- "__noinline__"