]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
clang-tidy: Block system headers with errors
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Nov 2025 14:52:46 +0000 (15:52 +0100)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 2 Jan 2026 08:23:38 +0000 (09:23 +0100)
blkid.h and gmessages.h both use const for arguments that are passed
by value, which is pointless and triggers clang-tidy warnings, so exclude
them from processing.

.clang-tidy

index fe0cab6c98727abb6fee7e6f4a5dfe5ce96e0a38..b2aa5983c5e58501764dd737cb8a86daef9197e5 100644 (file)
@@ -28,7 +28,9 @@ CheckOptions:
     varlink-idl-common\.h;
     unistd\.h
 '
+  misc-header-include-cycle.IgnoredFilesList: 'glib-2.0'
 WarningsAsErrors: '*'
+ExcludeHeaderFilterRegex: 'blkid\.h|gmessages\.h|gstring\.h'
 HeaderFileExtensions:
   - h
 ImplementationFileExtensions: