Coccinelle Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Find all variables/parameters of a given type.
Date: Fri, 16 Jan 2015 18:55:50 +0100	[thread overview]
Message-ID: <54B950A6.1040707@users.sourceforge.net> (raw)
In-Reply-To: <528DE554-4455-43F3-86D0-A4A1BE677755@gmail.com>

> But I get parse errors no matter what I try.

I guess that I can not really help with parsing difficulties
in your case.


> Where?s my error?

I find that your SmPL disjunction can also be written in
a slightly different way.
Would you like to try out the following semantic filter approach?

@find_big_integers@
identifier func, var;
@@
(
*long var
 ... ;
|
 func(...,
*     long var,
      ...);
|
 func(...,
*     long var,
      ...)
 { ... }
)

Regards,
Markus

  parent reply	other threads:[~2015-01-16 17:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 12:42 [Cocci] Find all variables/parameters of a given type Eliseo Martínez
2015-01-16 17:51 ` Julia Lawall
2015-01-16 17:55 ` SF Markus Elfring [this message]
2015-01-16 18:10   ` Julia Lawall
2015-01-16 18:21     ` [Cocci] Support for function definitions within SmPL disjunctions? SF Markus Elfring
2015-01-16 18:36 ` [Cocci] Find all variables/parameters of a given type SF Markus Elfring
2015-01-16 19:18   ` Eliseo Martínez
2015-01-16 20:05     ` SF Markus Elfring
2015-01-16 20:22       ` Julia Lawall
2015-01-16 21:25         ` Eliseo Martínez
2015-01-16 20:11     ` Julia Lawall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B950A6.1040707@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox