[cfe-commits] r65562 - in /cfe/trunk: lib/Sema/Sema.h lib/Sema/SemaDeclObjC.cpp test/SemaObjC/property-13.m

steve naroff snaroff at apple.com
Thu Feb 26 11:18:17 PST 2009


On Feb 26, 2009, at 2:16 PM, Sebastian Redl wrote:

> Steve Naroff wrote:
>> Author: snaroff
>> Date: Thu Feb 26 13:11:32 2009
>> New Revision: 65562
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=65562&view=rev
>> Log:
>> Fix <rdar://problem/6574319> clang issues error on 'readonly'  
>> property with a defaul setter attribute.
>>
>> Needed to make isPropertyReadonly() non-const (for this fix to  
>> compile). I imagine there's a way to retain the const-ness, however  
>> I have more important fish to fry.
>>
>> +  // Lastly, look through the implementation (if one is in scope).
>> +  if (ObjCImplementationDecl *ImpDecl =
>> +        ObjCImplementations[IDecl->getIdentifier()])
>> +    if (ImpDecl->getInstanceMethod(PDecl->getSetterName()))
>> +      return false;
>>   return true;
>> }
>>
> Wouldn't it suffice to make ImpDecl here a pointer-to-const?
>

Most likely...I'll give it a try.

The cryptic errors coming out of the C++ compiler confuse me sometimes.

Thanks for the suggestion,

snaroff

> Sebastian




More information about the cfe-commits mailing list