[Cocci] Blocks Support?

Julia Lawall julia.lawall at lip6.fr
Sat May 5 20:16:09 CEST 2018

On Tue, 17 Apr 2018, Julia Lawall wrote:

> On Tue, 17 Apr 2018, Mitchell Cuddie wrote:
> > Has anyone looked at supporting the blocks extension in Coccinelle?
> > https://clang.llvm.org/docs/BlockLanguageSpec.html
> >
> > There are a number of large projects like WebKit that could make use of
> > Coccinelle if it could parse the code. Any thoughts?
> Looking extremely quickly it looks like it could be possible.  Do you just
> want the parser not to crash or to change this kind of code.  Could you
> send a small typical example?

Currently, Coccinelle doesn't support nested function definitions.

Are these blocks used heavily in the code you are interested in?  If
Coccinelle can't parse one function, it will just move on to the next one.


More information about the Cocci mailing list