]> git.ipfire.org Git - thirdparty/systemd.git/commit
coccinelle: help Coccinelle with some more complex macros
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 26 Dec 2023 17:55:31 +0000 (18:55 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 27 Dec 2023 10:15:48 +0000 (11:15 +0100)
commitb25d3b36a21cd7a68039b85f887cc849ff7664a1
treee76445b55adf85d8d1cdbd0e128aad35b7b97638
parent11959eb201bdd478a8dc247b78a10fc8ffd611b9
coccinelle: help Coccinelle with some more complex macros

Drop the original macro file, since it's not needed anymore thanks to
resolving includes properly, but introduce a similar file -
parsing_hacks.h - that helps Coccinelle in some specific corner cases.

This eliminates most of the outstanding parsing errors in source files.
The remaining ones are limitations of the parsing engine (see the FIXMEs
in pasing_hacks.h) and need further investigation.
coccinelle/macros.h [deleted file]
coccinelle/parsing_hacks.h [new file with mode: 0644]
coccinelle/run-coccinelle.sh