All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Determination for the absence of an option in a function call
@ 2018-02-17 16:00 SF Markus Elfring
  2018-02-17 16:05 ` Julia Lawall
  0 siblings, 1 reply; 11+ messages in thread
From: SF Markus Elfring @ 2018-02-17 16:00 UTC (permalink / raw)
  To: cocci

Hello,

I am working with the following specification in some scripts for the semantic
patch language.

?
 target = action(...);
?


This source code search pattern shows that a return value from a function call
should be stored somewhere. The concrete call is restricted by a selection of
function names. Such an approach is working to some degree when restrictions
on function call parameters can be omitted.

But a safer source code analysis requires to distinguish these parameters in
more detail.

1. How should be ensured that a specific option was not passed?

2. The parameter number becomes also relevant then.
   How should functions be split based on their signature?

Regards,
Markus

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

end of thread, other threads:[~2018-02-17 20:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-17 16:00 [Cocci] Determination for the absence of an option in a function call SF Markus Elfring
2018-02-17 16:05 ` Julia Lawall
     [not found]   ` <2b678153-b7c0-6100-6d9c-624bd61e2b78@users.sourceforge.net>
2018-02-17 16:42     ` Julia Lawall
     [not found]       ` <a3c2fbd6-00f4-0113-aab8-4caeed631e1c@users.sourceforge.net>
2018-02-17 17:09         ` Julia Lawall
     [not found]           ` <b65bd20c-de90-2136-b375-246b873cf2a3@users.sourceforge.net>
2018-02-17 17:44             ` Julia Lawall
     [not found]               ` <d6ebe937-81ef-5556-7d00-f7b914521608@users.sourceforge.net>
2018-02-17 18:17                 ` Julia Lawall
     [not found]                   ` <81e498d6-294a-8542-9338-50ca8e96303c@users.sourceforge.net>
2018-02-17 19:05                     ` [Cocci] Handling of variations in function call parameters Julia Lawall
     [not found]               ` <2a43676a-fdee-236c-221e-f75a6bcd24f2@users.sourceforge.net>
2018-02-17 19:47                 ` [Cocci] Determination for the absence of an option in a function call Julia Lawall
     [not found]                   ` <5e69411a-310d-f80b-6bd6-48158f5a1afd@users.sourceforge.net>
2018-02-17 20:25                     ` Julia Lawall
     [not found]                       ` <e0b2f3b9-28bc-f4d4-01fc-f80317926bc4@users.sourceforge.net>
2018-02-17 20:36                         ` [Cocci] Checking for questionable error messages after failed memory allocations Julia Lawall
     [not found]                           ` <ac659e87-6e0a-8c7a-dcd9-fe79035123d6@users.sourceforge.net>
2018-02-17 20:55                             ` Julia Lawall

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.