From: Daan De Meyer Date: Tue, 20 May 2025 10:28:15 +0000 (+0200) Subject: clang-tidy: Enable misc-include-cleaner check X-Git-Tag: v259-rc2~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F39835%2Fhead;p=thirdparty%2Fsystemd.git clang-tidy: Enable misc-include-cleaner check The previous commit fixes all remaining violations of the check for a very specific setup (Fedora Rawhide with as many dependencies as possible installed). The linter job in CI runs that specific setup so we enable the check in the clang-tidy config but do not yet enable the clang-tidy test suite in meson by default as it will very likely still fail in different setups than the one in CI. --- diff --git a/.clang-tidy b/.clang-tidy index 03d45185d92..fe0cab6c987 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,7 +4,8 @@ Checks: ' -*, misc-header-include-cycle, readability-duplicate-include, - bugprone-argument-comment + bugprone-argument-comment, + misc-include-cleaner ' CheckOptions: misc-include-cleaner.MissingIncludes: 'false'