From 2b30325fb34452f04cecc3c466a11b21bc009e3d Mon Sep 17 00:00:00 2001 From: Sam Elliott Date: Thu, 22 Jan 2026 09:34:16 -0800 Subject: [PATCH] [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. --- llvm/.clang-format | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/.clang-format b/llvm/.clang-format index ecb44bfabd9a..4528c41de954 100644 --- a/llvm/.clang-format +++ b/llvm/.clang-format @@ -1,2 +1,8 @@ BasedOnStyle: LLVM LineEnding: LF +--- +# Don't format .td files +Language: TableGen +DisableFormat: true +SortIncludes: false +---