[cfe-dev] Warning options table
Ted Kremenek
kremenek at apple.com
Tue Mar 10 18:52:52 PDT 2009
On Mar 4, 2009, at 4:42 AM, Sebastian Redl wrote:
>> Wall? That is, to implement -Wall, or any other option whose
>> warnings
>> might cross several libraries, don't we need the ability to
>> potentially know about all the warnings across Clang? I think that
>> was the original motivation to put all the warnings in one TableGen
>> file.
>>
>
> If we have the warning option definitions in a separate file anyway
> (and I
> think we should, since warning options are orthogonal to which
> component
> issues the warning), you can just have that file include all the
> diagnostic
> definition files.
>
> Sebastian
Hi Sebastian,
I've been looking at what you have done and have started work on the
TableGen backends.
Concerning your point above, I still think that warning groups need to
be declarative, where a warning says (either implicitly or explicitly)
that it is part of a warning group. Explicitly having to declare
warning groups seems highly suboptimal.
We can then have a separate .td entry that tells how a warning group
maps to a command-line option.
Ted
More information about the cfe-dev
mailing list