From 7ee6627f6610f3d7e92571217021b65efc2056f2 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Fri, 26 May 2023 21:41:27 +0200 Subject: [PATCH] venus: Use the Mesa base style Acked-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Part-of: --- src/virtio/vulkan/.clang-format | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/src/virtio/vulkan/.clang-format b/src/virtio/vulkan/.clang-format index bdc8a0dc3fc..48aba350561 100644 --- a/src/virtio/vulkan/.clang-format +++ b/src/virtio/vulkan/.clang-format @@ -1,24 +1,13 @@ -BasedOnStyle: LLVM + +BasedOnStyle: InheritParentConfig + 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_outarray_append_typed - - vk_foreach_struct - - vk_foreach_struct_const + IncludeBlocks: Regroup IncludeCategories: - Regex: '^"vn_common.h"$' @@ -31,9 +20,5 @@ IncludeCategories: Priority: 2 - Regex: '.*' Priority: 1 -IndentWidth: 3 -PenaltyBreakBeforeFirstCallParameter: 1 -PenaltyExcessCharacter: 100 -SpaceAfterCStyleCast: false -SpaceBeforeCpp11BracedList: false + SpaceBeforeParens: ControlStatementsExceptForEachMacros