spgen

semantic patching tool for C

Install

All systems
curl cmd.cat/spgen.sh
Debian Debian
apt-get install coccinelle
Ubuntu
apt-get install coccinelle
image/svg+xml Kali Linux
apt-get install coccinelle
Fedora
dnf install coccinelle
Windows (WSL2)
sudo apt-get update sudo apt-get install coccinelle
OS X
brew install coccinelle
Raspbian
apt-get install coccinelle

coccinelle

semantic patching tool for C

Coccinelle is a program matching and transformation tool for C. The programmer describes the code to match and the transformation to perform as a semantic patch, which looks like a standard patch, but can transform multiple files at any number of code sites.