From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Sun, 07 Dec 2014 13:00:15 +0100 Subject: [Cocci] Finding function implementations that call only a single function. In-Reply-To: References: <5478F848.1080808@users.sourceforge.net> <54820FEF.4080901@users.sourceforge.net> <54834F76.1090104@users.sourceforge.net> <548358DE.6020409@users.sourceforge.net> <548371FB.9060402@users.sourceforge.net> <54837413.8000902@users.sourceforge.net> <5483806D.3070805@users.sourceforge.net> <5483902E.8060109@users.sourceforge.net> <54841AB2.6070609@users.sourceforge.net> <54842A73.4000203@users.sourceforge.net> <54842E04.9060800@users.sourceforge.net> Message-ID: <5484414F.4040900@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > If the return type has no impact on the match, it can be omitted. Is another metavariable needed to filter on functions with a non-void return type? >> When should a filter pattern on function implementations be adapted to >> the property that there will be a return value affected (or not)? > > I don't understand the question. It seems that I need to describe my small SmPL example with more drastic words. Would it introduce programming errrors in such an application of the semantic patch language? Does it contain logical mistakes? Regards, Markus