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

jahanian fjahanian at apple.com
Fri Oct 14 10:39:18 PDT 2011


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.

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