]> granicus.if.org Git - clang/commit
rename Decl::CompatibleAlias -> ObjCCompatibleAlias.
authorChris Lattner <sabre@nondot.org>
Mon, 31 Mar 2008 00:36:02 +0000 (00:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 Mar 2008 00:36:02 +0000 (00:36 +0000)
commit8a934233d1582b5bde9d270bc0705aa81e471a79
tree0d370fb1be80a370daa249de92b96886f662246a
parentce5605ecf76d8cde6372138f830bb144d174ced9
rename Decl::CompatibleAlias -> ObjCCompatibleAlias.

Fix objc ivar lookup.  Ivar lookup should occur between lookup
of method-local values and lookup of globals.  Emulate this with
some logic in the handling of Sema::ActOnIdentifierExpr.

Two todo's left:
 1) sema shouldn't turn a bare reference to an ivar into "self->ivar"
    in the AST.  This is a hack.
 2) The new ScopedDecl::isDefinedOutsideFunctionOrMethod method does
    not correctly handle typedefs and enum constants yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48972 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclObjC.h
lib/AST/Decl.cpp
lib/Sema/SemaExpr.cpp
test/Sema/objc-ivar-lookup.m [new file with mode: 0644]