This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] caret diagnostics
On Thu, 14 Aug 2008, Ralf Wildenhues wrote:
> * Tom Tromey wrote on Thu, Aug 14, 2008 at 06:52:24PM CEST:
> > I'm sympathetic to the idea that switching to caret output by default
> > will break things. However, I don't think that GCS-style ranges are
> > necessarily any more reality-proof, because I am skeptical that most
> > tool developers read this document when deciding how to parse GCC's
> > output.
>
> The GCS document helps not only to let tool developers know how output
> of programs they parse looks like; more importantly, it helps ensure
> that output from different programs is consistent.
And thereby allows a post-processor to add caret diagnostics to the output
of any GCS-conforming program, or an IDE or editor to show the locations
of errors from such a program, not just GCC, for example.
--
Joseph S. Myers
joseph@codesourcery.com