mesa/src/virtio/vulkan/.clang-format

39 lines
1.0 KiB
YAML

BasedOnStyle: LLVM
AlwaysBreakAfterReturnType: TopLevel
BinPackParameters: false
BraceWrapping:
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterStruct: false
BeforeElse: false
SplitEmptyFunction: true
BreakBeforeBraces: Custom
ColumnLimit: 78
ContinuationIndentWidth: 3
Cpp11BracedListStyle: false
ForEachMacros:
- list_for_each_entry
- list_for_each_entry_safe
- vk_outarray_append
- vk_foreach_struct
- vk_foreach_struct_const
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"vn_common.h"$'
Priority: 0
- Regex: '^"vn_'
Priority: 3
- Regex: '^"(venus-protocol/|virtio-gpu/|vtest/)'
Priority: 2
- Regex: '^"(c11/|util/|drm-uapi/|vk_|wsi_|git_)'
Priority: 2
- Regex: '.*'
Priority: 1
IndentWidth: 3
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyExcessCharacter: 100
SpaceAfterCStyleCast: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeParens: ControlStatementsExceptForEachMacros