]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: document why src/libc/ and src/test/ are excluded
authorMichael Vogt <michael@amutable.com>
Fri, 27 Mar 2026 10:20:40 +0000 (11:20 +0100)
committerMichael Vogt <michael@amutable.com>
Fri, 27 Mar 2026 10:22:22 +0000 (11:22 +0100)
For some of the directories it makes more sense to keep them
excluded from the coccinelle check. Specifically:
- libc: compatibility, no asserts or systemd headers yet
- test: uses NUL internally to test crashes etc

meson.build

index d820be416c15b9209a189f30a513d3f564381e58..e096992088c4b20ac25c598768fea6efcf4efee4 100644 (file)
@@ -2981,7 +2981,6 @@ if spatch.found()
                 'src/core/',
                 'src/import/',
                 'src/journal/',
-                'src/libc/',
                 'src/libsystemd/',
                 'src/libsystemd-network/',
                 'src/network/',
@@ -2989,6 +2988,9 @@ if spatch.found()
                 'src/nss-systemd/',
                 'src/resolve/',
                 'src/shared/',
+                # libc/ has no assert() or systemd-headers so leave it
+                'src/libc/',
+                # test/ has some deliberate wonky pointers, just leave excluded
                 'src/test/',
         ]