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 /docs/markdown | |
| 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 'docs/markdown')
| -rw-r--r-- | docs/markdown/snippets/clang-tidy-improvement.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/clang-tidy-improvement.md b/docs/markdown/snippets/clang-tidy-improvement.md new file mode 100644 index 000000000..f79463ed3 --- /dev/null +++ b/docs/markdown/snippets/clang-tidy-improvement.md @@ -0,0 +1,5 @@ +## `clang-tidy`'s auto-generated targets correctly select source files + +In previous versions, the target would run `clang-tidy` on _every_ C-like source files (.c, .h, .cpp, .hpp). It did not work correctly because some files, especially headers, are not intended to be consumed as is. + +It will now run only on source files participating in targets. |
