This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Plugin that parse tree
Kevin Andrà <hyperquantum@gmail.com> writes:
> Is that ever going to be fixed? If a front end mangles its AST
> representation, then it cannot be used for static analysis.
>
> Even if the constant folding in the front end is necessary for
> checking semantics, you could still keep the original source in the
> AST and simply attach the result of constant folding as some sort of
> tag to the expression node.
I agree that it would be nice if this were fixed. Like many things in
the free software world, it will happen if somebody volunteers to do it.
I don't think it is a priority for any of the active gcc developers.
Ian