diff options
| author | Sahnvour <sahnvour@pm.me> | 2025-06-22 11:58:22 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-07-21 09:09:10 -0700 |
| commit | 6b217e690f2e475363985bc0d074d4e644300d32 (patch) | |
| tree | 116b9bac57cdcf64955071a9e4550c2f62169bf6 /mesonbuild/scripts/clangtidy.py | |
| parent | 6e379f0090b606786d540001b4a2de52f57e5e47 (diff) | |
| download | meson-6b217e690f2e475363985bc0d074d4e644300d32.tar.gz | |
clang-tidy: run tool only on source files participating in targets
clang-tidy can't be ran as is on every source file and header
Diffstat (limited to 'mesonbuild/scripts/clangtidy.py')
| -rw-r--r-- | mesonbuild/scripts/clangtidy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/scripts/clangtidy.py b/mesonbuild/scripts/clangtidy.py index 550faeef3..e5f702491 100644 --- a/mesonbuild/scripts/clangtidy.py +++ b/mesonbuild/scripts/clangtidy.py @@ -11,7 +11,7 @@ import os import shutil import sys -from .run_tool import run_clang_tool, run_with_buffered_output +from .run_tool import run_with_buffered_output, run_clang_tool_on_sources from ..environment import detect_clangtidy, detect_clangapply import typing as T @@ -56,7 +56,7 @@ def run(args: T.List[str]) -> int: fixesdir.unlink() fixesdir.mkdir(parents=True) - tidyret = run_clang_tool('clang-tidy', srcdir, builddir, run_clang_tidy, tidyexe, builddir, fixesdir) + tidyret = run_clang_tool_on_sources('clang-tidy', srcdir, builddir, run_clang_tidy, tidyexe, builddir, fixesdir) if fixesdir is not None: print('Applying fix-its...') applyret = subprocess.run(applyexe + ['-format', '-style=file', '-ignore-insert-conflict', fixesdir]).returncode |
