On Wed, 27 Nov 2013, Michael Stefaniuc wrote:
> Hello,
>
> @@
> typedef VOID;
> typedef LPVOID;
> typedef PVOID;
> {void *, VOID *, LPVOID, PVOID} ppv;
> identifier QI =~ "_QueryInterface$";
> @@
> * QI(..., ppv)
>
> executed on
>
> int IFoo_QueryInterface(int *iface, long *riid, void **ppv)
> {
> return IBar_QueryInterface(iface, riid, *ppv);
> }
>
> gives:
> $ spatch QI.cocci /tmp/qi.c
> HANDLING: /tmp/qi.c
> No matches found for PVOID
> Skipping:/tmp/qi.c
>
> Putting LPVOID or VOID* last in the type list gives:
> No matches found for LPVOID
> respectively
> No matches found for VOID
>
> With void* in there I wouldn't have expected it to skip any files at all.
Thanks for the report. I will look into it. I expect to make a new
release soon.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci