]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
clang-tidy: Enable misc-include-cleaner check 39835/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 May 2025 10:28:15 +0000 (12:28 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 22 Nov 2025 09:19:41 +0000 (10:19 +0100)
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.

.clang-tidy

index 03d45185d923b8d8b90ced6e14d50d5b15616b21..fe0cab6c98727abb6fee7e6f4a5dfe5ce96e0a38 100644 (file)
@@ -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'