All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Find all variables/parameters of a given type.
@ 2015-01-16 12:42 Eliseo Martínez
  2015-01-16 17:51 ` Julia Lawall
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eliseo Martínez @ 2015-01-16 12:42 UTC (permalink / raw)
  To: cocci

Hi, 

I?m trying to write a semantic patch to be able to find all `long` variables/function parameters in my code.
I?ve tried a lot of variations, the last of them being:

```
@@ identifier i; @@

* long i;

@@ identifier i, f; @@

(
* f(long i) { ... }
|
* f(long i, ...) { ... }
|
* f(..., long i, ...) { ... }
|
* f(..., long i) { ... }
)
```

But I get parse errors no matter what I try.
Where?s my error? 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-01-16 21:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.