-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.clang-format
More file actions
53 lines (36 loc) · 1.08 KB
/
.clang-format
File metadata and controls
53 lines (36 loc) · 1.08 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
49
50
51
52
53
# AMD Infinity Storage C/C++ clang-format file
#
# For v18 formatting options:
# https://releases.llvm.org/18.1.6/tools/clang/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakAfterReturnType: TopLevelDefinitions
BraceWrapping:
BeforeCatch: true
BeforeElse: true
BreakBeforeBraces: Stroustrup
BreakStringLiterals: true
ColumnLimit: 110
FixNamespaceComments: false
IndentAccessModifiers: false
IndentCaseLabels: true
IndentGotoLabels: false
IndentWidth: 4
NamespaceIndentation: Inner
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
StatementMacros:
- HIPFILE_WARN_FORMAT_NONLITERAL_OFF
- HIPFILE_WARN_FORMAT_NONLITERAL_ON
- HIPFILE_WARN_NO_EXIT_DTOR_OFF
- HIPFILE_WARN_NO_EXIT_DTOR_ON
- HIPFILE_WARN_NO_GLOBAL_CTOR_OFF
- HIPFILE_WARN_NO_GLOBAL_CTOR_ON
TabWidth: 4
UseTab: Never