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]

Re: diagnostics (was: GCC 3.0 Branch: Guidelines)


Fergus Henderson wrote:-

> What categories did you have in mind?

I'm not too sure yet.  I've desired in CPP an extra category for
deprecated things.  Being able to have just warnings about extensions
would be nice too, without all the rest that comes with -pedantic.

In CPP at least one issue is that a lot of code is duplicated
with things like cpp_{warning,error,notice,ice,pedwarn}{_with_line,
_with_line_and_file}.  Merging all these into just three functions, say
cpp_diagnostic{_with_line,_with_line_and_file} that take a "severity"
level (or level plus embedded flags like deprecated, extension) allows
greater flexibility, both to GCC programmers and GCC users, whilst
reducing code duplication at the same time.

It'll be good to get things tied in with the front-ends too; that way C,
C++ and ObjC can get column numbers as well as line numbers, and maybe
other information like which macro you were expanding, etc.

Neil.


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