All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Coccinelle is confuse by extern __printf macro (ie attribute)
@ 2019-02-28  0:43 Jerome Glisse
  2019-02-28  7:05 ` Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Jerome Glisse @ 2019-02-28  0:43 UTC (permalink / raw)
  To: cocci

Coccinelle get confuse with kernel extern __printf macro for instance:

test.c:
extern __printf(3, 4)
int foo(int, int, char *, ...);
void toto(int, long);

test.sp:
@@
@@
void toto(int, 
+void *,
long);

The semantic patch will not work. But if extern is remove or if __printf
macro is remove then it works. Also having extern and __printf on different
line make it works.

Cheers,
Jérôme
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

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

end of thread, other threads:[~2019-03-08 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28  0:43 [Cocci] Coccinelle is confuse by extern __printf macro (ie attribute) Jerome Glisse
2019-02-28  7:05 ` Julia Lawall
2019-03-08 18:15   ` Jerome Glisse

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.