Re: [Cocci] [PATCH] parsing_c: Handle case of annotation in function proto/def

2020-01-09 Thread Julia Lawall
On Wed, 8 Jan 2020, Jaskaran Singh wrote: > For the following case: > > [const_vol] [ptr] > > The lookahead function in Parsing_hacks would mislabel as a > CppDirective, causing pretty printing errors. > > Add a case in the lookahead function for handling this case. Applied. Thanks! jul

[Cocci] [PATCH] parsing_c: Handle case of annotation in function proto/def

2020-01-08 Thread Jaskaran Singh
For the following case: [const_vol] [ptr] The lookahead function in Parsing_hacks would mislabel as a CppDirective, causing pretty printing errors. Add a case in the lookahead function for handling this case. Signed-off-by: Jaskaran Singh --- parsing_c/parsing_hacks.ml | 14 +