public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
* [cocci] Searching function implementations with more than a single return?
@ 2025-07-01  8:01 Markus Elfring
  2025-07-01 11:54 ` [cocci] Searching function implementations with variable declarations and statements? Markus Elfring
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Markus Elfring @ 2025-07-01  8:01 UTC (permalink / raw)
  To: cocci

Hello,

May I expect that a function like usb_ss_max_streams() can be found with the help
of the following source code search pattern?
https://elixir.bootlin.com/linux/v6.16-rc3/source/include/uapi/linux/usb/ch9.h#L721-L737

Another SmPL script example:
@display@
statement list sl;
identifier i;
type t;
@@
(return ...;
|
?t i;
*sl
)


Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> time /usr/bin/spatch --no-loops …/Projekte/Coccinelle/janitor/show_functions_with_more_than_single_return.cocci include/uapi/linux/usb/ch9.h
…
real    0m0,245s
user    0m0,214s
sys     0m0,028s


Regards,
Markus

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

end of thread, other threads:[~2025-07-03 13:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-01  8:01 [cocci] Searching function implementations with more than a single return? Markus Elfring
2025-07-01 11:54 ` [cocci] Searching function implementations with variable declarations and statements? Markus Elfring
2025-07-01 12:09   ` Julia Lawall
2025-07-01 12:26     ` Markus Elfring
2025-07-01 12:29       ` Julia Lawall
2025-07-01 12:00 ` Markus Elfring
2025-07-01 12:42   ` Markus Elfring
2025-07-01 13:41     ` Julia Lawall
2025-07-01 13:55       ` Markus Elfring
2025-07-01 14:01         ` Julia Lawall
2025-07-01 13:01 ` [cocci] Searching function implementations with more than a single return? Markus Elfring
2025-07-01 13:40   ` Julia Lawall
2025-07-01 13:50     ` Markus Elfring
2025-07-01 13:59       ` Julia Lawall
2025-07-01 14:06         ` Markus Elfring
2025-07-01 15:17           ` Julia Lawall
2025-07-01 18:00             ` Markus Elfring
2025-07-02  9:11             ` [cocci] Search challenges for “statement lists”? Markus Elfring
2025-07-03 10:00             ` [cocci] Using statement list combinations? Markus Elfring
2025-07-03 10:23               ` Julia Lawall
2025-07-03 10:28                 ` Markus Elfring
2025-07-03 11:54                   ` Julia Lawall
2025-07-03 13:25                     ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox