[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56066866.1060602@users.sourceforge.net>
Date: Sat, 26 Sep 2015 11:41:58 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Julia Lawall <julia.lawall@...6.fr>
Cc: Andrzej Hajda <a.hajda@...sung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Gilles Muller <Gilles.Muller@...6.fr>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Michal Marek <mmarek@...e.com>,
Nicolas Palix <nicolas.palix@...g.fr>,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
cocci@...teme.lip6.fr
Subject: Re: [PATCH] coccinelle: assign signed result to unsigned variable
> To collect function calls that have a return value of a given type t,
> it should be sufficient to do the following:
>
> @@
> t e;
> identifier f;
> @@
>
> f(...)@e
Is such a SmPL approach better than a variant like the following?
@find_function@
type t;
identifier f;
@@
t f(...)
{ ... }
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists