[Cocci] use Coccinelle to perform "queries" on C code

David Wagner deubeuliou at gmail.com
Thu Mar 1 00:43:50 CET 2012


On 29/02/2012 09:10, Eric Noulard wrote:
> 2012/2/29 David Wagner<deubeuliou at gmail.com>:
>> Hello,
>>
>> I have been trying to find a tool that would allow to perform queries on C
>> code such as "what are the values, in all the codebase, that are passed as
>> second argument of 'func' ?".
>> [...]
>>
>> Any pointer would be greatly welcome.
>
> If your requests are not too complicated you can try "coccigrep"
> as well it is "semantic grep" which uses coccinelle spatch.
> see: http://home.regit.org/software/coccigrep/
>

Hi Eric,

That looks cool too !  I would be able to easily reuse an spatch in Vim 
... neat.

Thanks !
David.


More information about the Cocci mailing list