On Tue, 4 Feb 2020, Markus Elfring wrote: > > I think it expects a type as well. I don't know if that is a reasonable > > assumption in C or in C++. > > Can a source code transformation approach like the following make sense? > > @replacement@ > @@ > -auto > +my_type There is nothing to support this. So far I don't have the impression that anyone has had a need for it either. julia > > > elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch --parse-cocci > replace_auto1.cocci > init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h > minus: parse error: > File "replace_auto1.cocci", line 5, column 0, charpos = 32 > around = '', > whole content = > > > Will the software support for adjustments around the explicit specification of > automatic storage duration become better anyhow? > https://en.cppreference.com/w/c/language/storage_duration > > Regards, > Markus > _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
- [Cocci] Replacing a std::string check by strcmp() with ... Markus Elfring
- Re: [Cocci] Replacing a std::string check by strcm... Julia Lawall
- Re: [Cocci] Replacing a std::string check by s... Markus Elfring
- Re: [Cocci] Replacing a std::string check ... Julia Lawall
- Re: [Cocci] Replacing a std::string ch... Markus Elfring
- Re: [Cocci] Replacing a std::stri... Julia Lawall
- Re: [Cocci] Replacing a std::... Markus Elfring
- Re: [Cocci] Replacing usages ... Markus Elfring
- Re: [Cocci] Replacing usa... Julia Lawall
- Re: [Cocci] Replacing usa... Markus Elfring
- Re: [Cocci] Replacing usa... Julia Lawall
- Re: [Cocci] Replacing usa... Markus Elfring
- Re: [Cocci] Replacing a std::string check ... Julia Lawall
- Re: [Cocci] Replacing a std::string ch... Markus Elfring
- Re: [Cocci] Searching for usage of “auto” with... Markus Elfring
- Re: [Cocci] Searching for usage of “auto” ... Julia Lawall
- Re: [Cocci] Searching for usage of “au... Markus Elfring
- Re: [Cocci] Replacing a std::string check by strcm... wellington wallace
- Re: [Cocci] Replacing a std::string check by s... Markus Elfring
