clang-format: Disable formatting by default
This should make `git clang-format` usable for patches that modify clang formatted and manually formatted code. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9492 Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24645>
This commit is contained in:
@@ -311,3 +311,10 @@ ForEachMacros:
|
||||
- pan_foreach_instr_in_block_rev
|
||||
- pan_foreach_predecessor
|
||||
- pan_foreach_successor
|
||||
|
||||
# Disable clang formatting by default. Drivers that use clang-format
|
||||
# inherit from this .clang-format file and re-enable formatting:
|
||||
#
|
||||
# DisableFormat: false
|
||||
#
|
||||
DisableFormat: true
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 100
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 120
|
||||
|
@@ -2,6 +2,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
TypenameMacros:
|
||||
- REF
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlignConsecutiveBitFields: true
|
||||
ColumnLimit: 80
|
||||
|
@@ -1,4 +1,5 @@
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 0
|
||||
Cpp11BracedListStyle: false
|
||||
|
@@ -1,4 +1,5 @@
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 80
|
||||
AlwaysBreakAfterReturnType: All
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlignConsecutiveBitFields: true
|
||||
ColumnLimit: 80
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlwaysBreakAfterReturnType: TopLevel
|
||||
BinPackParameters: false
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 120
|
||||
SortIncludes: false
|
||||
|
@@ -1,4 +1,5 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
ColumnLimit: 80
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlwaysBreakAfterReturnType: TopLevel
|
||||
AllowShortEnumsOnASingleLine: false
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlignConsecutiveBitFields: true
|
||||
ColumnLimit: 80
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
BinPackParameters: false
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
BasedOnStyle: InheritParentConfig
|
||||
DisableFormat: false
|
||||
|
||||
AlwaysBreakAfterReturnType: TopLevel
|
||||
BinPackParameters: false
|
||||
|
Reference in New Issue
Block a user