Debian Codegraph @

src/xrt/.clang-format

raw
1 ---
2 # SPDX-License-Identifier: CC0-1.0
3 # SPDX-FileCopyrightText: 2020-2022, Collabora, Ltd.
4 Language: Cpp
5 BasedOnStyle: LLVM
6 Standard: Auto
7
8 # Includes
9 SortIncludes: false
10 # SortIncludes: true
11 # IncludeBlocks: Regroup
12 # # IncludeBlocks: Preserve
13 # IncludeCategories:
14 # # xrt includes first, they set up defines, clean up after messy headers, etc.
15 # - Regex: "^[<\"](xrt)/"
16 # Priority: 2
17 # # Then, any other internal library
18 # - Regex: "^[<\"](util|vk|os|math|render|multi)/"
19 # Priority: 3
20 # # system includes
21 # - Regex: "<([[:alnum:].]+|type_traits)>"
22 # Priority: 5
23 # # Everything else (local includes)
24 # - Regex: ".*"
25 # Priority: 2
26
27 # Spacing and Blank Lines
28 DerivePointerAlignment: false
29 PointerAlignment: Right
30 #AlignEscapedNewlines: DontAlign
31 #AlignConsecutiveDeclarations: false
32 #AlignConsecutiveAssignments: false
33 MaxEmptyLinesToKeep: 3
34
35 # Indentation
36 IndentWidth: 8
37 TabWidth: 8
38 UseTab: ForIndentation
39 AccessModifierOffset: -8
40 IndentCaseLabels: false
41 NamespaceIndentation: Inner
42
43 # Line length/reflow
44 ColumnLimit: 120
45 ReflowComments: true
46
47
48 # Line breaks
49 AlwaysBreakAfterReturnType: All
50 AllowShortFunctionsOnASingleLine: Empty
51 AllowShortIfStatementsOnASingleLine: false
52 AllowShortCaseLabelsOnASingleLine: true
53 AlwaysBreakBeforeMultilineStrings: true
54 BreakBeforeBraces: Custom
55 BraceWrapping:
56 AfterEnum: true
57 AfterStruct: true
58 AfterClass: true
59 SplitEmptyFunction: false
60 AfterFunction: true
61 AfterNamespace: false
62
63 # false means either "all on one line" or "each on their own",
64 # won't put more than one on a line if they don't all fit.
65 BinPackArguments: true
66 BinPackParameters: false