[clang-tools-extra] [clang-tidy] Don't print `Enabled checks:` by default (PR #185229)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 7 13:10:55 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tidy
Author: None (yh-sb)
<details>
<summary>Changes</summary>
`Enabled checks:` by default prints hundreds of lines **polluting output** with moderate amount of enabled checks.
Disable it by default since it's **not human readable** at all.
---
Full diff: https://github.com/llvm/llvm-project/pull/185229.diff
1 Files Affected:
- (modified) clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (+1-1)
``````````diff
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..7ddc07bbdf07f 100755
--- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -665,7 +665,7 @@ async def main() -> None:
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
+ invocation, stdout=subprocess.DEVNULL
)
except Exception:
print("Unable to run clang-tidy.", file=sys.stderr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/185229
More information about the cfe-commits
mailing list