Table of Contents
Coccinelle wiki
spatch
Usage Tips
Play with your ladybug and python
Installation
Links
Coccinelle wiki
spatch
Metavariables
C syntax errors
Coccinelle syntax errors
Matching Python rules
Usage Tips
Language constructs
Controlling the running time of spatch
Pattern match failure
The use of "when"
Parameter list matching
Working on global/local variables -- using the ''local'' attribute
Position metavariables
Working on if with single statement, ignoring if with curly brakets
Update function calls to use a wrapper function without updating the wrapper function itself
Working on global/local variables -- using positions
Transform not only function calls but function pointers too
Dependencies between patterns
Virtual rules
Virtual identifiers
Working on preprocessed code/using CPP
Play with your ladybug and python
Coccinelle API for use with Python
Controlling the execution of Python rules
Refine matching on identifiers with regexp on identifier name
Add a parameter throughout a call chain
Source location information
Executing Python at start/end of every source file
Installation
Windows
Links
Coccinelle main website:
http://coccinelle.lip6.fr/
wiki syntax