]> granicus.if.org Git - clang/commit
For ivars created using @synthesize, set their DeclContext to be
authorTed Kremenek <kremenek@apple.com>
Thu, 11 Mar 2010 19:44:54 +0000 (19:44 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 11 Mar 2010 19:44:54 +0000 (19:44 +0000)
commit7d2aa11c5c3b85a9d727ff868de666ba3bff5b59
treefeea473093d9681c87a872dae569edcd21ce48a7
parentd1b47bf17fde73fac67d8664bd65273742c00ecd
For ivars created using @synthesize, set their DeclContext to be
the @implementation (instead of the @interface) and actually add
the ivar to the DeclContext (which we weren't doing before).

This allows us to simplify ASTContext::CollectNonClassIvars() by
removing ASTContext::CollectProtocolSynthesizedIvars().  Now all
ivars can be found by either inspecting the ObjCInterfaceDecl and
its companion ObjCImplementationDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98280 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaDeclObjC.cpp