On Oct 14, 2011, at 10:39 AM, jahanian wrote:

> 
> On Oct 14, 2011, at 10:35 AM, Argyrios Kyrtzidis wrote:
> 
>> On Oct 14, 2011, at 9:56 AM, jahanian wrote:
>> 
>>> Don't we already have logic for finding previous declarations; say for 
>>> ivars, or c++ men functions?
>> 
>> No, because ivars and C++ member functions cannot be redeclared (wish it 
>> wasn't allowed for objc methods either..)
> 
> Interesting, from actual code I assume.

Well actually, just FYI, the definition of a C++ member function is considered 
in the AST as a redeclaration that is marked using the Redeclarable template.

> 
>> 
>> For declarations that can get redeclared, like FunctionDecl, we use the 
>> Redeclarable template but I didn't want to increase the size of ObjC methods 
>> for such an uncommon case.
> 
> OK thanks.
> 
> - Fariborz
> 
> 

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to