Re: [cocci] Matching function pointer casts

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
> I meanwhile found a workaround but it's ugly -- not because cocci fails
> to match on function pointer casts (I implemented that by making use of
> its python script capabilities) but because of actual source code
> guards, the function pointer assignments are wrapped in.
> 
> It's an '#if ... #else ... #endif' block that, apparently, doesn't get
> processed correctly. The preprocessor condition is non-trivial as in not
> simply being "0" or "1" but still easy enough to handle (one level of indirection).

Thanks for such background information.

There are some development challenges remaining for better support
of conditional “compilation” (or analysis) also by the means of the Coccinelle software.

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.