]> git.ipfire.org Git - thirdparty/systemd.git/commit
coccinelle: drop a couple of FIXMEs
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 28 Dec 2023 16:12:24 +0000 (17:12 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 2 Jan 2024 18:12:05 +0000 (19:12 +0100)
commitcd4b16c0827f1f96aad19fb6e8952e03e419389d
treee0442506e38eabb9a1dcdf877d3ee156344878f9
parentc0d672f1615c9af026a53de426206725798dc5ce
coccinelle: drop a couple of FIXMEs

Turns out Coccinelle can handle compound literals just fine, the parsing
errors were caused by incorrectly parsed macros in code before the
literals, so let's just provide simplified versions for such macros.

The parsing error in `Type *foo[ELEMENTSOF(bar)] = {};` is actually
harmless; it occurs only when creating an array of pointers for a type
that's in an external header and it occurs only on the first parser's
pass, subsequent passes resolve the type correctly.

Also, unset ENABLE_DEBUG_HASHMAP, so Coccinelle doesn't expand the
hashmap debug macros.

As for the remaining FIXMEs, I opened a couple of issues in the
Coccinelle upstream to see if they can be fixed there (or at least
properly analyzed).
coccinelle/parsing_hacks.h
coccinelle/run-coccinelle.sh