This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Better GCC diagnostics


Manuel López-Ibáñez wrote:
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?).

The error mechanism in Ada is very extensive, probably would be quite a bit of work to find out how to interface effectively to this API, but something that would be nice to do in the long run.

Cheers,


Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]