monado/src/xrt/.clang-format

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-03-18 05:52:32 +00:00
---
2020-10-30 22:05:32 +00:00
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2020, Collabora, Ltd.
2019-03-18 05:52:32 +00:00
Language: Cpp
BasedOnStyle: LLVM
Standard: Auto
# Includes
SortIncludes: false
# Spacing and Blank Lines
2019-09-29 10:44:14 +00:00
DerivePointerAlignment: false
2019-03-18 05:52:32 +00:00
PointerAlignment: Right
#AlignEscapedNewlines: DontAlign
#AlignConsecutiveDeclarations: false
#AlignConsecutiveAssignments: false
MaxEmptyLinesToKeep: 3
# Indentation
IndentWidth: 8
TabWidth: 8
UseTab: ForIndentation
AccessModifierOffset: -8
IndentCaseLabels: false
NamespaceIndentation: Inner
# Line length/reflow
2021-01-14 14:12:46 +00:00
ColumnLimit: 120
2019-03-18 05:52:32 +00:00
ReflowComments: true
# Line breaks
AlwaysBreakAfterReturnType: All
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterClass: true
SplitEmptyFunction: false
AfterFunction: true
AfterNamespace: false
# false means either "all on one line" or "each on their own",
# won't put more than one on a line if they don't all fit.
BinPackArguments: true
BinPackParameters: false