systemd/coccinelle
Frantisek Sumsal cd4b16c082 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).
2024-01-02 19:12:05 +01:00
..
bool-cast.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
close-above-stdio.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
cmp.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
cond-omit-middle.cocci coccinelle: add a transformation for GNU conditionals 2023-03-18 14:23:11 +01:00
const-strlen.disabled licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
debug-logging.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
div-round-up.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
dup-fcntl.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
empty-or-dash.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
empty-or-root.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
empty-to-null.cocci coccinelle: skip the empty-to-null transformation on the macro itself 2023-01-25 11:35:06 +01:00
empty-to-root.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
enotsup.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
equals-null.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
errno-check.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
errno-wrapper.cocci tree-wide: use cocinnelle to apply _NEG_ macros 2023-08-16 12:52:56 +02:00
errno.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
exit-0.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
flags-set.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
fopen-unlocked.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
free_and_replace.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
hashmap_free.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
htonl.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
in_set.cocci coccinelle: don't try to use IN_SET() in assert_cc() 2022-05-30 18:17:11 +02:00
iovec-make.cocci coccinelle: don't run iovec-make on iovec_done{,_erase} 2023-10-25 11:16:37 +02:00
isempty.cocci format-table: introduce table_isempty and use it where appropriate 2023-12-25 17:47:18 +08:00
log-json.cocci coccinelle: fix the log-json rule 2023-12-25 13:53:02 +01:00
malloc_multiply.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
mempcpy.cocci coccinelle: automatically switch some uses of memcpy() → mempcpy() 2022-02-16 17:26:26 +01:00
memzero.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
mfree_return.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
mfree.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
no-if-assignments.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
not_in_set.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
o-ndelay.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
parsing_hacks.h coccinelle: drop a couple of FIXMEs 2024-01-02 19:12:05 +01:00
reallocarray.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
redundant-if.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
run-coccinelle.sh coccinelle: drop a couple of FIXMEs 2024-01-02 19:12:05 +01:00
safe_close-no-if.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
safe_close.cocci tree-wide: use -EBADF for fd initialization 2022-12-19 15:00:57 +01:00
safe_closedir.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
safe_fclose.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
sd_event_source_disable_unref.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
set_ensure_put.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
siphash24.cocci siphash24: introduce siphash24_compress_typesafe() macro 2023-12-25 15:38:59 +09:00
strdupa.cocci alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
strempty.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
strjoin.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
strjoina.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
strv_free.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
swap-two.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
synthetic-errno.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
take-fd.cocci coccinelle/take-fd: match for -EBADF instead of -1 2023-07-09 14:07:48 +09:00
take-ptr.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
timestamp-is-set.cocci coccinelle: automatically look for timestamp_is_set candidates 2022-02-22 22:47:12 +01:00
while-true.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
xsprintf.cocci licensing: add spdx to our .cocci files 2021-10-01 14:45:00 +02:00
zz-drop-braces.cocci coccinelle: properly drop braces around single-statement if()s 2023-12-25 13:53:02 +01:00