* [Cocci] Include files in .cocci?
@ 2017-02-23 16:18 Peter Senna Tschudin
2017-02-23 19:37 ` Julia Lawall
0 siblings, 1 reply; 2+ messages in thread
From: Peter Senna Tschudin @ 2017-02-23 16:18 UTC (permalink / raw)
To: cocci
Hi,
Is there a way to include .cocci files from another .cocci file? If
I'm to write a library of rules I use, can I avoid maintaining
multiple copies of the rules?
Thanks a lot!
--
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cocci] Include files in .cocci?
2017-02-23 16:18 [Cocci] Include files in .cocci? Peter Senna Tschudin
@ 2017-02-23 19:37 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2017-02-23 19:37 UTC (permalink / raw)
To: cocci
On Thu, 23 Feb 2017, Peter Senna Tschudin wrote:
> Hi,
>
> Is there a way to include .cocci files from another .cocci file? If
> I'm to write a library of rules I use, can I avoid maintaining
> multiple copies of the rules?
Experiment with variants of include "foo.cocci" and #include "foo.cocci".
I think you can do this only at the beginning of a file.
Another approach would be to just use cpp, if you don't have any #includes
or #defined in your rules.
julia
>
> Thanks a lot!
>
> --
> Peter
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-23 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 16:18 [Cocci] Include files in .cocci? Peter Senna Tschudin
2017-02-23 19:37 ` Julia Lawall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.