On Thu, 6 Jun 2019, Markus Elfring wrote: > > It seems that spatch currently just doesn't understand preprocessor > > directives at all, > > I find this view only partly appropriate. > There is preprocessor functionality supported by the semantic patch language. > > Example: > https://github.com/coccinelle/coccinelle/blob/cad4c0705f9e37f501531e133d3a47bc56ed0ce2/docs/manual/cocci_syntax.tex#L1125 > > > > just treats them as literal strings. > > See also: > https://github.com/coccinelle/coccinelle/blob/cad4c0705f9e37f501531e133d3a47bc56ed0ce2/docs/manual/cocci_syntax.tex#L1765
To be less cryptic, Coccinelle supprorts matching and transformation for #include and #define, and addition of comments pragmas and ifdefs. julia _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci