-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.clang-format
60 lines (58 loc) · 1.63 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
51
52
53
54
55
56
57
58
---
BasedOnStyle: LLVM
ColumnLimit: 140
IndentWidth: 4
IndentPPDirectives: BeforeHash
IndentExternBlock : NoIndent
TabWidth: 4
Language: Cpp
Standard: c++17
CompactNamespaces: true
BreakBeforeBraces: Mozilla
UseCRLF: false
UseTab: Never
SortIncludes: true
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: None
BreakConstructorInitializers: BeforeComma
DerivePointerAlignment: False
PointerAlignment: Left
AlignTrailingComments: true
AlignEscapedNewlines: Left
AlignOperands: Align
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveMacros: false
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
ReflowComments: false
FixNamespaceComments: true
# SpacesBeforeTrailingComments: true
MacroBlockBegin: "^NVIMGCODECAPI_TRY"
MacroBlockEnd: "^NVIMGCODECAPI_CATCH.*$"
TypenameMacros: ['CHECK_NULL']
...