On Thu, 26 Jul 2018, Timur Tabi wrote:
> On Thu, Jul 26, 2018 at 3:26 PM, Julia Lawall <[email protected]> wrote:
>
> >> 1. Provide a list of files that "spatch --in-place --dir ." would edit
> >
> > I'm not sure to understand what you are asking for here.
>
> So when I run "spatch --in-place --dir .", spatch run my cocci script
> on a bunch of files, but not all of them will need to be changed. For
> some, there won't be a match.
>
> I would like a list of files that spatch *would* change in this
> situation. Something like "spatch --list-only", so I can do this:
>
> $ p4 edit `spatch --sp-file nvprintf.cocci --in-place --list-only --dir .`
> $ spatch --sp-file nvprintf.cocci --in-place --list-only --dir .
Coccinelle can make a list of relevant files, but there is not a guarantee
that the rule will actually match on those files. The option is
--selected-only.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci