Module: Mesa
Branch: main
Commit: 7e023df76f011301d517762dedb788a14910b02c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e023df76f011301d517762dedb788a14910b02c

Author: Konstantin Seurer <[email protected]>
Date:   Fri May 26 21:41:05 2023 +0200

util/perf: Use the Mesa base style

Acked-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23275>

---

 src/util/perf/.clang-format | 38 ++++++--------------------------------
 1 file changed, 6 insertions(+), 32 deletions(-)

diff --git a/src/util/perf/.clang-format b/src/util/perf/.clang-format
index 4060d6146fd..7bdaa2210d7 100644
--- a/src/util/perf/.clang-format
+++ b/src/util/perf/.clang-format
@@ -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

Reply via email to