ci: add pipeline segment to run clang-tidy (#49072)

* ci: add pipeline segment to run clang-tidy

* chore: set -header-filter='' for clang-tidy

Breaking change in `clang-tidy` 22.0.0:

> clang-tidy now displays warnings from all non-system headers by default.
> Previously, users had to explicitly opt-in to header warnings using
> -header-filter=’.*’. To disable warnings from non-system, set
> -header-filter to an empty string.
This commit is contained in:
David Sanders
2026-01-26 11:37:01 -08:00
committed by GitHub
parent ae43f17b79
commit 4aa89b9c3c
7 changed files with 423 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ async function runClangTidy (
fix: boolean = false
): Promise<boolean> {
const cmd = path.resolve(LLVM_BIN, 'clang-tidy');
const args = [`-p=${outDir}`];
const args = [`-p=${outDir}`, "-header-filter=''"];
if (!process.env.CI) args.push('--use-color');
if (fix) args.push('--fix');