All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: cocci@inria.fr
Subject: Re: [cocci] Searching function implementations with more than a single return?
Date: Tue, 1 Jul 2025 15:01:45 +0200	[thread overview]
Message-ID: <38ed2bf4-4bb2-4ace-87c8-191e19f8445b@web.de> (raw)
In-Reply-To: <3675aefe-7163-4b02-a4ad-07b7a23a4b13@web.de>

> Another SmPL script example:

for further development considerations?

@display@
identifier i;
statement s;
statement list sl;
type t;
@@
(return ...;
|t i;
(
 <+...
*s
 ...+>
|
*sl
)
)


Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> time /usr/bin/spatch --no-loops …/Projekte/Coccinelle/janitor/show_functions_with_more_than_single_return2.cocci include/uapi/linux/usb/ch9.h
…
@@ -668,7 +668,6 @@ usb_endpoint_maxp_mult(const struct usb_
…
@@ -723,17 +722,10 @@ usb_ss_max_streams(const struct usb_ss_e
…
real    0m0,250s
user    0m0,217s
sys     0m0,030s


Regards,
Markus

  parent reply	other threads:[~2025-07-01 13:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Markus Elfring [this message]
2025-07-01 13:40   ` [cocci] Searching function implementations with more than a single return? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38ed2bf4-4bb2-4ace-87c8-191e19f8445b@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.