Debian Codegraph @

tests/.clang-format

raw
1 ---
2 # SPDX-License-Identifier: CC0-1.0
3 # SPDX-FileCopyrightText: 2020, Collabora, Ltd.
4 Language: Cpp
5 BasedOnStyle: LLVM
6 Standard: Auto
7
8 # Includes
9 SortIncludes: false
10
11 # Spacing and Blank Lines
12 DerivePointerAlignment: false
13 PointerAlignment: Right
14 #AlignEscapedNewlines: DontAlign
15 #AlignConsecutiveDeclarations: false
16 #AlignConsecutiveAssignments: false
17 MaxEmptyLinesToKeep: 3
18
19 # Indentation
20 IndentWidth: 8
21 TabWidth: 8
22 UseTab: ForIndentation
23 AccessModifierOffset: -8
24 IndentCaseLabels: false
25 NamespaceIndentation: Inner
26
27 # Line length/reflow
28 # Longer for tests because of high levels of indentation
29 ColumnLimit: 120
30 ReflowComments: true
31
32
33 # Line breaks
34 AlwaysBreakAfterReturnType: All
35 AllowShortFunctionsOnASingleLine: Empty
36 AllowShortIfStatementsOnASingleLine: false
37 AllowShortCaseLabelsOnASingleLine: true
38 AlwaysBreakBeforeMultilineStrings: true
39 BreakBeforeBraces: Custom
40 BraceWrapping:
41 AfterEnum: true
42 AfterStruct: true
43 AfterClass: true
44 SplitEmptyFunction: false
45 AfterFunction: true
46 AfterNamespace: false
47
48 # false means either "all on one line" or "each on their own",
49 # won't put more than one on a line if they don't all fit.
50 BinPackArguments: true
51 BinPackParameters: false