[clang-tools-extra] [clang-tidy][NFC] Add empty .clang-tidy in tests to warnings in ide (PR #171029)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 7 04:05:06 PST 2025
zeyi2 wrote:
This is mostly just a hypothesis for now.
I think the Windows fails because `clang-tools-extra/test/clang-tidy/infrastructure/Inputs/param/parameters.txt` incorrectly uses single quotes for the -checks argument.
On Windows, the argument is [parsed](https://github.com/llvm/llvm-project/blob/fb0400fe1f1f9e83f3148db8ce2c72ab5bc6728e/llvm/lib/Support/CommandLine.cpp#L940) as a check named `' -*,llvm-namespace-comment '`, which matches no existing checks, so no checks are enabled via the command line.
Previously, the test passed because it fell back to the root `.clang-tidy` configuration which enables `llvm-*`.
I'll open a PR to fix the issue in `parameters.txt` first.
https://github.com/llvm/llvm-project/pull/171029
More information about the cfe-commits
mailing list