[Cocci] Extending source code at file end with SmPL

SF Markus Elfring elfring at users.sourceforge.net
Tue Feb 2 13:23:28 CET 2016

>> I would also appreciate if the input file will be checked according to specific
>> source code search patterns.
> I guess you can generate what you want with Coccinelle, and then cat it
> onto the end of some other file and do diff to get a patch.

I am looking for possibilities to keep a tool like "spatch" the central
interface for the specification of desired source code changes.
I would like to avoid the patch generation for special search patterns
by various workarounds.
How many software development efforts are needed then to keep corresponding
context information (like line numbers for patch hunks) consistent?


More information about the Cocci mailing list