The open source OpenXR runtime
1---
2# SPDX-License-Identifier: CC0-1.0
3# SPDX-FileCopyrightText: 2020, Collabora, Ltd.
4Language: Cpp
5BasedOnStyle: LLVM
6Standard: Auto
7
8# Includes
9SortIncludes: false
10
11# Spacing and Blank Lines
12DerivePointerAlignment: false
13PointerAlignment: Right
14#AlignEscapedNewlines: DontAlign
15#AlignConsecutiveDeclarations: false
16#AlignConsecutiveAssignments: false
17MaxEmptyLinesToKeep: 3
18
19# Indentation
20IndentWidth: 8
21TabWidth: 8
22UseTab: ForIndentation
23AccessModifierOffset: -8
24IndentCaseLabels: false
25NamespaceIndentation: Inner
26
27# Line length/reflow
28# Longer for tests because of high levels of indentation
29ColumnLimit: 120
30ReflowComments: true
31
32
33# Line breaks
34AlwaysBreakAfterReturnType: All
35AllowShortFunctionsOnASingleLine: Empty
36AllowShortIfStatementsOnASingleLine: false
37AllowShortCaseLabelsOnASingleLine: true
38AlwaysBreakBeforeMultilineStrings: true
39BreakBeforeBraces: Custom
40BraceWrapping:
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.
50BinPackArguments: true
51BinPackParameters: false