SDL
/
.clang-format
90 строк · 2.2 Кб
1---
2AlignConsecutiveMacros: Consecutive
3AlignConsecutiveAssignments: None
4AlignConsecutiveBitFields: None
5AlignConsecutiveDeclarations: None
6AlignEscapedNewlines: Right
7AlignOperands: Align
8AlignTrailingComments: true
9
10AllowAllArgumentsOnNextLine: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortEnumsOnASingleLine: true
13AllowShortBlocksOnASingleLine: Never
14AllowShortCaseLabelsOnASingleLine: false
15AllowShortFunctionsOnASingleLine: All
16AllowShortIfStatementsOnASingleLine: Never
17AllowShortLoopsOnASingleLine: false
18
19AlwaysBreakAfterDefinitionReturnType: None
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: MultiLine
23
24# Custom brace breaking
25BreakBeforeBraces: Custom
26BraceWrapping:
27AfterCaseLabel: true
28AfterClass: true
29AfterControlStatement: Never
30AfterEnum: true
31AfterFunction: true
32AfterNamespace: true
33AfterObjCDeclaration: true
34AfterStruct: true
35AfterUnion: true
36AfterExternBlock: false
37BeforeElse: false
38BeforeWhile: false
39IndentBraces: false
40SplitEmptyFunction: true
41SplitEmptyRecord: true
42
43# Make the closing brace of container literals go to a new line
44Cpp11BracedListStyle: false
45
46# Never format includes
47IncludeBlocks: Preserve
48# clang-format version 4.0 through 12.0:
49#SortIncludes: false
50# clang-format version 13.0+:
51#SortIncludes: Never
52
53# No length limit, in case it breaks macros, you can
54# disable it with /* clang-format off/on */ comments
55ColumnLimit: 0
56
57IndentWidth: 4
58ContinuationIndentWidth: 4
59IndentCaseLabels: false
60IndentCaseBlocks: false
61IndentGotoLabels: true
62IndentPPDirectives: None
63IndentExternBlock: NoIndent
64
65PointerAlignment: Right
66SpaceAfterCStyleCast: false
67SpacesInCStyleCastParentheses: false
68SpacesInConditionalStatement: false
69SpacesInContainerLiterals: true
70SpaceBeforeAssignmentOperators: true
71SpaceBeforeCaseColon: false
72SpaceBeforeParens: ControlStatements
73SpaceAroundPointerQualifiers: Default
74SpaceInEmptyBlock: false
75SpaceInEmptyParentheses: false
76
77UseCRLF: false
78UseTab: Never
79
80ForEachMacros:
81[
82"spa_list_for_each",
83"spa_list_for_each_safe",
84"wl_list_for_each",
85"wl_list_for_each_safe",
86"wl_array_for_each",
87"udev_list_entry_foreach",
88]
89
90---
91
92