r184068 - Add warning group -Wdeprecated-register for C++11 warning on 'register' being
Richard Smith
richard at metafoo.co.uk
Mon Jun 17 12:33:34 PDT 2013
On Mon, Jun 17, 2013 at 11:40 AM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> On Jun 16, 2013, at 17:01 , Richard Smith <richard-llvm at metafoo.co.uk>
> wrote:
>
> +// FIXME: Why are DeprecatedImplementations and DeprecatedWritableStr
> +// not in this group?
> +def Deprecated : DiagGroup<"deprecated", [DeprecatedDeclarations,
> + DeprecatedRegister]>,
>
>
> As I understand it, because -Wdeprecated is for user deprecations (i.e.
> __attribute__((deprecated))), not language deprecations.
That doesn't match our existing practice, which is somewhat
inconsistent but seems to be closer to using -Wdeprecated-declarations
for user deprecations, and -Wdeprecated for all deprecations.
Specifically, prior to my changes:
-Wdeprecated contained:
-Wdeprecated-declarations
access declarations
bool increment
__vector long
deprecated driver arguments
-Wdeprecated-declarations contained:
__attribute__((deprecated))
"maybe deprecated because receiver type is unknown" (???)
use of C-style parameters in objective-C method declarations (???)
And -Wdeprecated-objc-isa-usage, -Wdeprecated-writable-strings, and
-Wdeprecated-implementations are not part of any other group.
Maybe we should move those two (???) warnings out of
-Wdeprecated-declarations and into -Wdeprecated?
More information about the cfe-commits
mailing list