error messages with ranges

Richard Stallman rms@gnu.org
Thu Oct 15 07:07:00 GMT 2009


    In principle the location range information would be only internal for
    GCC. The option that enables it to be shown in the output would allow
    external programs (like emacs, IDEs, a custom wrapper, or GCC's
    regression tester) to parse the output of GCC. In fact, what such
    programs would do is to turn OFF the caret information and turn ON the
    location range information, in order to provide their own custom caret
    information.

Given that plan, why not output the arg location information
in separate lines distinguished by some special prefix?

Standardizing its format could be useful at some point,
but it need not be part of the error message standard.

    > How exactly do people propose to use that location range information?

    As far as I know, at least one IDE is using it to parse the output of
    Clang and provide custom caret information in the IDE interface.

Are you saying that clang already outputs the argument range information
in this format?



More information about the Gcc-patches mailing list