Re: [Cocci] "depends on" per file

2019-05-27 Thread Markus Elfring
> The issue is that if the rule gets matched in one file, > it will include the header in every other file as well, How did you choose the selected source file combination? > because the "depends on ever" clause is satisfied. > Is there a way to tell coccinelle "apply this rule to file X, > but

Re: [Cocci] "depends on" per file

2019-05-24 Thread Markus Elfring
> @ replace_simple_positive @ How do you think about to move this rule to a separate SmPL script? Do any other subsequent rules depend on it? Regards, Markus ___ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci

Re: [Cocci] "depends on" per file

2019-05-24 Thread Julia Lawall
On Fri, 24 May 2019, Christoph Böhmwalder wrote: > Hi, > > I'm trying to replace a function with a one-liner, where the one-liner > has a dependency on a header file that the function doesn't. > Now I want to include said header file iff it isn't already included > in the affected file. > In

[Cocci] "depends on" per file

2019-05-24 Thread Christoph Böhmwalder
Hi, I'm trying to replace a function with a one-liner, where the one-liner has a dependency on a header file that the function doesn't. Now I want to include said header file iff it isn't already included in the affected file. In more concrete terms, this is my script: @ find_linux_dcache_h @