> Question 1:
> 
> Could you please update coccinelle to be verbose about such parse failures?

No, I don't think we want to do that.  You would have nothing but these 
errors, and most of the time they are irrelevant.  There is an option 
-parse_error_msg that the patch below makes more useful.  If you use this 
option, you will get all of the parser error messages.  I have also added 
an option -verbose_parsing, which gives even more information about 
parsing problems.

> Question 2:
> 
> How do I tell coccinelle to ignore the DEBUG macro?

You need to update your standard.h, or probably better make one of your 
own, with the following:

#define DEBUG(x) MACROSTATEMENT

Actually, this exists already in standard.h, but under comments, 
presumably because it was found not to be a good idea in recent versions 
of Linux.

Afterwards, you can give your new file to Coccinelle as the argument of 
the option -macro_file

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to