This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Better GCC diagnostics
2008/8/20 Arnaud Charlet <charlet@adacore.com>:
>> If we want to implement re-opening files and reading strings given
>> locations, then opening/reading files should also be moved out of CCP
>> to its own module/namespace/object.
>
> Agreed. Other modules may find these APIs very handy.
> Currently many features are only available very deep or hidden inside
> libcpp implementation that could be useful in other contexts (such
> as e.g. getting source file dependency information).
Not just that, probably Fortran/Ada are already duplicating stuff that
is in libcpp or they are implementing their own version of stuff that
C/C++ are lacking (caret diagnostics? character encodings?).
Cheers,
Manuel.