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:
Konstantin Seurer
2023-08-12 10:53:39 +02:00
parent 47722b2d7f
commit e2a02f3910
15 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 100

View File

@@ -1,3 +1,4 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 120

View File

@@ -2,6 +2,7 @@
# SPDX-License-Identifier: MIT
BasedOnStyle: InheritParentConfig
DisableFormat: false
TypenameMacros:
- REF

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlignConsecutiveBitFields: true
ColumnLimit: 80

View File

@@ -1,4 +1,5 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 0
Cpp11BracedListStyle: false

View File

@@ -1,4 +1,5 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 80
AlwaysBreakAfterReturnType: All

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlignConsecutiveBitFields: true
ColumnLimit: 80

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlwaysBreakAfterReturnType: TopLevel
BinPackParameters: false

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 120
SortIncludes: false

View File

@@ -1,4 +1,5 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
ColumnLimit: 80

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlwaysBreakAfterReturnType: TopLevel
AllowShortEnumsOnASingleLine: false

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlignConsecutiveBitFields: true
ColumnLimit: 80

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
BinPackParameters: false

View File

@@ -1,5 +1,6 @@
BasedOnStyle: InheritParentConfig
DisableFormat: false
AlwaysBreakAfterReturnType: TopLevel
BinPackParameters: false