From: julia.lawall@lip6.fr (Julia Lawall) Date: Wed, 17 Dec 2014 20:20:35 +0100 (CET) Subject: [Cocci] Finding function implementations that call only a single function. In-Reply-To: <5491A1A0.40809@users.sourceforge.net> References: <5478F848.1080808@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> <5484414F.4040900@users.sourceforge.net> <54846702.1000505@users.sourceforge.net> <5491A1A0.40809@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Wed, 17 Dec 2014, SF Markus Elfring wrote: > > I suggest to reconsider this situation once more. > > I have looked at my script "list_functions_with_single_function_call5.cocci" again. > > > > * It can be that I got stuck somehow in this application variant as the > > number of relevant rules grew. > > It seems that I made a bit progress in a better direction. > > Now I stumble on the next detail problem if I try to design the needed > SmPL rules for more specific source code. > > * How can it be excluded with the semantic patch language to match non-pointer > data types with the metavariable type "type?" > * Which is the best way to distinguish non-pointer types from pointer data types > with metavariables? If you do the following: @@ expression * e1; expression e2; @@ ( e1 | e2 ) Then e2 should match the non-pointer type expressions. julia