r180860 - [ObjC declaration documentation] declaration of

John McCall rjmccall at apple.com
Wed May 1 11:51:37 PDT 2013


On May 1, 2013, at 10:55 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> I'm not sure it's right to remove 'const'—consider global string constant declarations:
> 
> extern NSString * const MyNotificationName;
> 
> I think you'll have to explicitly remove ObjC lifetime attrs only.

Why is this a problem?  You think the user wants to see "cannot initialize object of type 'NSMutableString *' with expression of type 'NSString * const'"?

As long as the value's been lvalue-to-rvalue-converted, I see no reason to report top-level qualification.

John.



More information about the cfe-commits mailing list