Packages exist for several distributions:

You can find Coccinelle’s source code at GitHub, or clone the repository with:

git clone

More details available on Coccinelle’s website.


Work in progress, comments welcomed via the following form.

How to use Coccinelle to find bugs:

How to use Coccinelle to fix bugs:

Advanced usages:


A detailed specification of SmPL’s grammar here.
The official website page on documentation.

Useful links

Official website
Source Code:
Semantic patches examples, use GitHub research tool to find usage examples of different grammatical structures.
Coccinelle’s mailing list, ask your questions there.