On Mon, 7 Feb 2011, SF Markus Elfring wrote:

> Thanks for your detailed response.
> 
> 
> > In fact, it looks like a string is a constant element in the grammar of
> > Coccinelle.
> > Thus, we can change a string "aaa" to a string "bbb", but there is no way
> > to "look inside the literal" and make transformations there from SmPL alone.
> 
> Would it make sense to peek into strings and source code comments by the
> semantic patch language?
> 
> Would it be convenient and safer to avoid calls into SmPL's scripting
> interfaces?

Not much.  Strings and comments are not structured, at least not ccording 
to the C grammar.  If one wants to make a coccinelle for one's favorite 
commenting standard, then that could be interesting, but it is not a 
priority of this project.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to