[LLVM] Disable clang-format for TableGen files (#177002)

Clang-format is not very maintained for TableGen, and seems to make odd
choices that differ significantly from how humans write and read the
backend's tablegen.

For the moment, disable clang-format for TableGen files. This should
also apply when using `git clang-format`, which should help with newer
contributors who sometimes end up formatting td files by accident.
This commit is contained in:
Sam Elliott
2026-01-22 09:34:16 -08:00
committed by GitHub
parent d7078b6737
commit 2b30325fb3

View File

@@ -1,2 +1,8 @@
BasedOnStyle: LLVM
LineEnding: LF
---
# Don't format .td files
Language: TableGen
DisableFormat: true
SortIncludes: false
---