This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Plugin that parse tree
>>>>> "Ian" == Ian Lance Taylor <iant@google.com> writes:
Ian> The problem with warnings for this kind of code in C/C++ is that it
Ian> often arises in macro expansions. I think it would be necessary to
Ian> first develop a scheme which lets us determine whether code resulted
Ian> from a macro expansion or not, which I think would be quite useful in a
Ian> number of different cases.
There is a patch series pending for this.
See the thread "Tracking locations of tokens resulting from macro
expansion".
Tom