[Cocci] Preprocessor enclosed code ignored
lacombar at gmail.com
Fri May 14 20:22:43 CEST 2010
On Fri, May 14, 2010 at 1:51 PM, yoann padioleau
<yoann.padioleau at gmail.com> wrote:
> There are some hardcoded patterns in the C parser used by coccinelle
> to not process code under
> #if 0
> The reason is that at least in the linux kernel, the code under such
> ifdef is often not valid C code.
does it ? I just ran spatch with -noif0_passing in the root of the
2.6.33 directory and it completed successfully. I'd be tempted to say
that having '#if 0' code ignored by default is misleading and error
> You can bypass with the -noif0_passing command line flag to spatch.
Thanks, it worked like a charm :)
More information about the Cocci