[cfe-dev] Patch & feedback request
steve naroff
snaroff at apple.com
Mon Jul 27 09:57:18 PDT 2009
On Jul 27, 2009, at 12:47 PM, Erik Verbruggen wrote:
>
>> How does objc treat CV qualifiers on catch types? I don't think that
>> this makes sense, does it?
>>
>> @catch (NSString *const X) ..
>> @catch (NSString *volatile X) ..
>>
>> Also, what about CV qualifiers on the interface, like this:
>>
>> @catch (const NSString *X) ..
>> @catch (volatile NSString *X) ..
>
> Does ObjC use ActOnCXXTryBlock?
No...it uses ActOnObjCAtTryStmt(). CXX usually implies C++-specific.
> And as we're talking about more cases anyway, shouldn't clang warn on:
>
> try {
> } catch (Exception e) {}
>
> ... saying that an exception should be catched by reference?
>
The code excerpt doesn't give me enough info to respond. Is
'Exception' above an ObjC interface/object? If so, Sema will complain,
saying "interface type cannot be statically allocated".
snaroff
> Cheers,
> Erik.
>
> <unreachable-exception-
> handlers.patch>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list