From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Tue, 22 Aug 2017 12:33:22 +0200 Subject: [Cocci] Comparing statement lists with SmPL In-Reply-To: References: <69d615e4-0f62-2289-dd59-97c625ba47e8@users.sourceforge.net> <76e2fbf5-4812-18eb-2968-53019d97ab14@users.sourceforge.net> <9b9a69c1-105a-47e5-099e-816efd08d8f4@users.sourceforge.net> <83922670-ac64-c8c5-1977-cddc06f4cb00@users.sourceforge.net> Message-ID: <66d79bf8-20f5-772d-3403-d593fb472e6b@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr >>> The pattern matched in two different functions? >> >> Please look once more. >> >> Yes. - This is one of the reasons why I ask here again. >> >> I would like to choose if a code analysis should happen only within a single function >> or on interesting parts from the complete source file. > > Feel free to make a tool of your own if you are not satisfied with the one > offered you. This is also possible. - But I wonder more about specific test results based on the currently provided software. I got matches for places where I would expect that they should not match. > Coccinelle applies a rule to one function at a time. This is also fine for a while. > That is not going to change. I imagine that the situation could evolve more if additional development resources will appear somehow. > If you want to match things in different functions, make two rules. Additional SmPL rules will search for other details. Regards, Markus