On 22 Sep., 15:42, Benjamin Smedberg wrote:
> In one tool? That sounds prohibitively complicated. Why not use one tool for
> preprocessor rewriting and another for C++ rewriting?

A tool that can completely work with C/C++ preprocessing would be
enough for my use case.
The most promising approach seems to be the free Wave class library at
the moment.


> Python and perl certainly do, via named backreferences as well as, I think,
> numeric backreferences with \g{10} and such.

Thanks for your view.

I try to be careful with such details because regex engines exist that
do not support more than 9 groups and back-references. There are
remarkable differences in the technical limitations of the various
flavours.


> It sounds like you could probably hack a preprocessor-rewriting into one of
> the open-source preprocessors such as MCPP. It's just too much scope-creep
> for a C++ rewriting tool[

How much does the preprocessor still belong to C++?   ;-)

Regards,
Markus
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to