[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:57:47 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- run-clang-tidy.py 2026-03-07 21:07:56.000000 +0000
+++ run-clang-tidy.py 2026-03-07 21:57:19.886817 +0000
@@ -662,13 +662,11 @@
None, # No profiling for the list-checks invocation
)
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
- )
+ subprocess.check_call(invocation, stdout=subprocess.DEVNULL)
except Exception:
print("Unable to run clang-tidy.", file=sys.stderr)
sys.exit(1)
# Load the database and extract all files.
``````````
</details>
https://github.com/llvm/llvm-project/pull/185229
More information about the cfe-commits
mailing list