On Fri, 18 Jun 2010, Eric Noulard wrote:

> Hi again :-),
> 
> Is there a way to #include cocci files into another cocci files?
> 
> My use case would be:
> 
> write a set of simple cocci files   s1.cocci, s2.cocci etc...
> write a more complex complex.cocci which would
> "include/load" [part of ] the set of the cocci files and run
> some python script using the matches of every "loaded"  rules?
> 
> Is it possible ?
> May be it's not a good way to "modularize" to be checked rules?

You should be able to use #include at the beginning of a .cocci file.  
There were some bugs in that, so you may want to try with the most recent 
version of coccinelle: 0.2.3rc2

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

Reply via email to