[clang-tools-extra] [clang-tidy] Don't print `Enabled checks:` by default (PR #185229)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 03:36:30 PDT 2026
https://github.com/yh-sb updated https://github.com/llvm/llvm-project/pull/185229
>From 093f82166722ac0f1f620d4e03e1d4538b4f020a Mon Sep 17 00:00:00 2001
From: yh-sb <yh.sb at outlook.com>
Date: Mon, 9 Mar 2026 12:36:16 +0200
Subject: [PATCH] [clang-tidy] Don't print `Enabled checks:` by default
`Enabled checks:` prints hundreds of lines polluting output
with moderate amount of enabled checks.
It's not human readable at all.
---
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
index f4c3d00734389..0f6bdb54ff75d 100755
--- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -664,9 +664,7 @@ async def main() -> None:
invocation.append("-list-checks")
invocation.append("-")
# Even with -quiet we still want to check if we can call clang-tidy.
- subprocess.check_call(
- invocation, stdout=subprocess.DEVNULL if args.quiet else None
- )
+ subprocess.check_call(invocation, stdout=subprocess.DEVNULL)
except Exception:
print("Unable to run clang-tidy.", file=sys.stderr)
sys.exit(1)
More information about the cfe-commits
mailing list