-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
50 lines (50 loc) · 1.19 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
Language: Cpp
BasedOnStyle: Google
UseTab: Never
IndentWidth: 4
TabWidth: 4
AccessModifierOffset: -4
AlignConsecutiveMacros: true
AllowShortIfStatementsOnASingleLine: Never
SortIncludes: CaseInsensitive
ColumnLimit: 100
BraceWrapping:
BeforeElse: true
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
AlignConsecutiveAssignments: true
InsertNewlineAtEOF: true
AllowShortFunctionsOnASingleLine: Empty
BreakAfterAttributes: Leave
AttributeMacros: [
CONFIG_CLANG_NONNULL_QUALIFIER,
CONFIG_CLANG_NULLABLE_QUALIFIER,
RESTRICT_QUALIFIER,
]
StatementAttributeLikeMacros: [
ATTRIBUTE_CONST,
ATTRIBUTE_MAYBE_UNUSED,
ATTRIBUTE_PURE,
ATTRIBUTE_NOINLINE,
ATTRIBUTE_ALWAYS_INLINE,
ATTRIBUTE_COLD,
ATTRIBUTE_HOT,
ATTRIBUTE_ALLOC_SIZE,
ATTRIBUTE_ACCESS,
ATTRIBUTE_SIZED_ACCESS,
ATTRIBUTE_ACCESS_NONE,
ATTRIBUTE_NONNULL,
ATTRIBUTE_NONNULL_ALL_ARGS,
ATTRIBUTE_TARGET,
ATTRIBUTE_LIFETIME_BOUND,
ATTRIBUTE_REINITIALIZES,
ATTRIBUTE_NODISCARD,
ATTRIBUTE_NODISCARD_WITH_MESSAGE,
ATTRIBUTE_NORETURN,
ATTRIBUTE_NOTHROW,
ATTRIBUTE_FALLTHROUGH,
]
StatementMacros: [
CONFIG_ASSUME_STATEMENT,
]
BinPackParameters: false