All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Incorrect skipping on custom types in type list
@ 2013-11-27 22:26 Michael Stefaniuc
  2013-11-27 22:46 ` Julia Lawall
  2013-11-28  8:42 ` Julia Lawall
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Stefaniuc @ 2013-11-27 22:26 UTC (permalink / raw)
  To: cocci

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.

bye
	michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-28 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 22:26 [Cocci] Incorrect skipping on custom types in type list Michael Stefaniuc
2013-11-27 22:46 ` Julia Lawall
2013-11-28  8:42 ` Julia Lawall
2013-11-28 21:10   ` Michael Stefaniuc

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.