Re: [Cocci] Checking support for compound expressions (according to #define directives)

2021-04-05 Thread Markus Elfring
>> I would like to avoid the repetition of parsing efforts as much as possible. >> Under which circumstances can replacement lists be taken better into account? > > Why does my suggestion involve a repetition of parsing effort? The selection of the applied programming interfaces has got

Re: [Cocci] Checking support for compound expressions (according to #define directives)

2021-04-05 Thread Julia Lawall
On Mon, 5 Apr 2021, Markus Elfring wrote: > >> I would like to avoid the repetition of parsing efforts as much as > >> possible. > >> Under which circumstances can replacement lists be taken better into > >> account? > > > > Why does my suggestion involve a repetition of parsing effort? > >

Re: [Cocci] Checking support for compound expressions (according to #define directives)

2021-04-05 Thread Julia Lawall
On Mon, 5 Apr 2021, Markus Elfring wrote: > >> @display@ > >> identifier i =~ "^(?:[A-Z]+_){3,3}[A-Z]+", x; > >> constant c =~ "\""; > >> @@ > >> *#define i x c > >> > >> > >> elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci > >> show_define_usage6.cocci > >> … > >> minus:

Re: [Cocci] Checking support for compound expressions (according to #define directives)

2021-04-05 Thread Julia Lawall
On Mon, 5 Apr 2021, Markus Elfring wrote: > > Thanks for the simpler examples. > > Would you like to support another search pattern by the means of > the semantic patch language? > > > @display@ > identifier i =~ "^(?:[A-Z]+_){3,3}[A-Z]+", x; > constant c =~ "\""; > @@ > *#define i x c > > >