[cfe-commits] r141946 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/AST/DeclObjC.cpp lib/Sema/SemaDeclObjC.cpp test/PCH/method-redecls.m

Argyrios Kyrtzidis kyrtzidis at apple.com
Fri Oct 14 10:43:35 PDT 2011


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
> 
> 




More information about the cfe-commits mailing list