Open Fuco1 opened 6 years ago
This problem will generalize to all macros, I think. It's too bad a static analyzer can't expand macros – but it could detect them with a declare
form.
We can still analyse macros where we know beforehand what the structure is, so things like when
are pefrectly easy to analyse with the a priori knowledge. Even when we don't the assumption of "this is just code" holds more often than not.
We had a discussion about macro expansion here: https://github.com/emacs-elsa/Elsa/issues/32
I haven't yet decided if we want to abort and skip or assume it's regular code (iow what is the more common variant). See also #19
Beyond unreachable expression, I got type error with this expression:
(rx line-start
(group (+? (not (any ?:))))
": "
(group (* not-newline))
line-end)
This presents a lot of "unreachable expression" false warnings.