On 9/22/09 7:10 AM, elfring wrote:

> It would be nice if all features from the C++ programming language
> will be supported.

In one tool? That sounds prohibitively complicated. Why not use one tool for
preprocessor rewriting and another for C++ rewriting?

> The script or a compiled program should handle the general pattern for
> include guard recognition. It might happen that a potential regular
> expression is too big.
> Which tools or regex engines do support more than 9 captures and
> corresponding backreferences for example?

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

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[

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

Reply via email to