[Patch][ObjC][Proposal] NSValue literals

jahanian fjahanian at apple.com
Mon Jan 5 10:39:13 PST 2015


> On Dec 24, 2014, at 3:29 AM, AlexDenisov <1101.debian at gmail.com> wrote:
> 
>> Do the usual lookup to find the method which implements this syntax. Call Decl::getAvailability on this method. If it returns
>> anything other than AvailabilityResult::AR_Available 
> 
> Well, I understand this part, it’s pretty obvious. But what I don’t understand is:
> 
>> issue an appropriate diagnostic.
> 
> What is appropriate diagnostic for AR_NotYetIntroduced?
> 
> Should I introduce this diagnostic? Or just show warning/error for Deprecated/Unavailable and ignore NotYetIntroduced AR?

It is sufficient to issue an unavailability diagnostics since diagnostic points to the method which has the availability info. as part of its declaration.

- Fariborz


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150105/55884ef2/attachment.html>


More information about the cfe-commits mailing list