]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Rework clang-tidy integration to be done via unit tests
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 15 May 2025 13:09:27 +0000 (15:09 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 May 2025 08:29:59 +0000 (10:29 +0200)
commitd86fead481327cb293464f8a782ff22d036de62e
treeca171130aff2670ca3d8caa0b6b17fd1c281bea9
parent6196e414a5565535eaee3e486181fb60c65061fe
meson: Rework clang-tidy integration to be done via unit tests

Instead of using run-clang-tidy.py with its own scheduling, let's
just gather a list of source files ourselves and then use that to
add a unit test for each source file that runs clang-tidy on the
source file.

We also add a bit of logic to run clang-tidy on most header files
as well for extra coverage. This uncovered various header files that
were not standalone so this commit also includes fixes to make sure
the clang-tidy tests are all green.

We can also use this in a later commit to run clang-include-cleaner
on each source file in the same way.
21 files changed:
.github/workflows/linter.yml
meson.build
src/basic/meson.build
src/basic/rlimit-util.h
src/basic/uid-range.h
src/basic/virt.h
src/boot/meson.build
src/core/meson.build
src/core/show-status.h
src/fundamental/meson.build
src/journal/journald-stream.h
src/journal/journald-sync.h
src/libsystemd-network/meson.build
src/libsystemd/meson.build
src/libudev/meson.build
src/login/logind-seat.h
src/machine/operation.h
src/shared/meson.build
src/shared/smack-util.h
src/shared/utmp-wtmp.h
src/sysupdate/sysupdate-partition.h