From 6b217e690f2e475363985bc0d074d4e644300d32 Mon Sep 17 00:00:00 2001 From: Sahnvour Date: Sun, 22 Jun 2025 11:58:22 +0200 Subject: 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 --- docs/markdown/snippets/clang-tidy-improvement.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/clang-tidy-improvement.md (limited to 'docs') 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. -- cgit v1.2.3