[Cocci] matching "..." va_list args

Jonathan Klee jklee at nosuchfail.org
Thu Nov 6 18:12:50 CET 2014

Dear all,

Since "..." basically means anything, I was wondering if we can match 
"..." va_list kind of arguments in a function prototype.
I would like to do something like :

identifier f, a;
type T, A;
-T f(A a, ...);
+T f(A a, ...) { va_list args; va_start(args, a); va_stop(args); }


More information about the Cocci mailing list