Coccinelle (French for ladybug) is a tool to match and transform the source code of programs written in the C programming language. Coccinelle was initially used to aid the evolution of Linux kernel, providing support for changes to library application programming interfaces (APIs) such as renaming a function, adding a function argument whose value is somehow context-dependent, and reorganizing a data structure.