util/perf: Use the Mesa base style
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Fri, 26 May 2023 19:41:05 +0000 (21:41 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 29 May 2023 21:06:12 +0000 (21:06 +0000)
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23275>

src/util/perf/.clang-format

index 4060d61..7bdaa22 100644 (file)
@@ -1,16 +1,10 @@
-BasedOnStyle: LLVM
-AlwaysBreakAfterReturnType: TopLevelDefinitions
+
+BasedOnStyle: InheritParentConfig
+
 BinPackParameters: false
-BraceWrapping:
-  AfterControlStatement: false
-  AfterEnum: false
-  AfterFunction: true
-  AfterStruct: false
-  BeforeElse: false
-  SplitEmptyFunction: true
-BreakBeforeBraces: Custom
+
 ColumnLimit: 78
-ContinuationIndentWidth: 3
+
 Cpp11BracedListStyle: false
 IncludeBlocks: Regroup
 IncludeCategories:
@@ -20,26 +14,6 @@ IncludeCategories:
     Priority:        2
   - Regex:           '.*'
     Priority:        1
-IndentWidth: 3
-PenaltyBreakBeforeFirstCallParameter: 1
-PenaltyExcessCharacter: 100
+
 SpaceAfterCStyleCast: true
 SpaceBeforeCpp11BracedList: true
-ForEachMacros:
-  - BITSET_FOREACH_SET
-  - BITSET_FOREACH_RANGE
-  - LIST_FOR_EACH_ENTRY
-  - LIST_FOR_EACH_ENTRY_SAFE
-  - LIST_FOR_EACH_ENTRY_SAFE_REV
-  - list_for_each_entry
-  - list_for_each_entry_safe
-  - list_for_each_entry_rev
-  - list_for_each_entry_rev_safe
-  - list_for_each_entry_from
-  - list_for_each_entry_from_rev
-  - foreach_list_typed
-  - u_foreach_bit
-  - u_vector_foreach
-  - util_dynarray_foreach
-  - rb_tree_foreach
-  - rb_tree_foreach_safe