cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] Searching for functions with non-internal linkage
@ 2020-09-21 12:32 Markus Elfring
  2020-09-21 13:22 ` Julia Lawall
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Elfring @ 2020-09-21 12:32 UTC (permalink / raw)
  To: Coccinelle

Hello,

I have tried another tiny script variant out for the semantic patch language
(according to the software combination “Coccinelle 1.0.8-00177-g28737419”).

@find@
identifier i;
type t;
@@
 t i(...)
 { ... }

@find_static@
identifier find.i;
type find.t;
@@
 static t i(...)
 { ... }

@display depends on !find_static@
identifier find.i;
type find.t;
@@
*t i(...)
 { ... }


This source code analysis approach is generally working in the way
it is designed.
Can the same data processing results be achieved also with a single SmPL rule?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

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

end of thread, other threads:[~2020-09-22 19:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 12:32 [Cocci] Searching for functions with non-internal linkage Markus Elfring
2020-09-21 13:22 ` Julia Lawall
     [not found]   ` <38815e95-833b-e2fd-4630-8ae7cfe54aa7@web.de>
2020-09-21 13:48     ` Julia Lawall
     [not found]       ` <12c105f8-80e3-b47d-3bc5-141d6011fe89@web.de>
2020-09-21 14:27         ` Julia Lawall
     [not found]           ` <6746e72b-ad50-7b03-f059-8e22e21d32c9@web.de>
2020-09-22  9:29             ` Julia Lawall
     [not found]           ` <1367af30-cbff-dd2d-f17d-5b9464fad359@web.de>
2020-09-22 10:28             ` [Cocci] Searching for functions with linkage specifications Julia Lawall
     [not found]               ` <cf0e8aa0-67f0-966c-4fa4-6942331069a6@web.de>
2020-09-22 12:37                 ` Julia Lawall
     [not found]                   ` <eaacd91c-4752-2031-266f-243557dd0f72@web.de>
2020-09-22 12:54                     ` Julia Lawall
     [not found]                       ` <245d6cf2-438b-ed0c-ac60-d5448b408cb2@web.de>
2020-09-22 13:14                         ` Julia Lawall
     [not found]                           ` <3bae0270-a34a-9133-daaf-8be0de0bbcbb@web.de>
2020-09-22 19:33                             ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).