[cfe-dev] proposal: every warning should have a -W flag

David Blaikie dblaikie at gmail.com
Tue Aug 9 22:44:12 PDT 2011


> All of our diagnostics have unique tablegen entries, so getting unique names
> for -W flags might not be that hard.  When one looks at the .td files, many
> of the diagnostic names directly correspond to the -W flag.

Oh, of course. So would it be worth just making every diagnostic its
own flag by definition, using the tablegen name for the -W flag?

> I was specifically proposing that…
> (a) every warning is part of a group
> and
> (b) every group that contains a warning that can only be activated by that group maps to a -W flag

Does LLVM have the concept of groups that don't have an associated -W
flag? what are they for?

- David




More information about the cfe-dev mailing list