From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Thu, 22 Jan 2015 09:59:37 +0100 Subject: [Cocci] Matching functions with attributes In-Reply-To: <02347CD6-6A31-41A9-B4EE-58163C49368C@gmail.com> References: <54BFD099.8030002@users.sourceforge.net> <02347CD6-6A31-41A9-B4EE-58163C49368C@gmail.com> Message-ID: <54C0BBF9.3040804@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > I have a working spatch now: > ``` > @@ identifier func =~ "^(vim_strsave|list_alloc)$"; statement S; @@ > > ( > * if (func(...) == NULL) > S How much does the SmPL star functionality matter here for you? Do you need to get the source code analysis results also in other data formats like the following? * Emacs org mode * CSV file variant Regards, Markus