]> granicus.if.org Git - clang/commitdiff
Don't treat synthesized ivars as being in the base class for the purpose of
authorNick Lewycky <nicholas@mxc.ca>
Tue, 3 Apr 2012 20:26:45 +0000 (20:26 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 3 Apr 2012 20:26:45 +0000 (20:26 +0000)
looking up visible decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp
test/Index/complete-synthesized.m

index adbfedc64157c8d679bf77ea76683b1a5661ac3e..9fb248ed5bdb7928b66e3c8fde0e7857ffeed369 100644 (file)
 #include "llvm/ADT/TinyPtrVector.h"
 #include "llvm/ADT/edit_distance.h"
 #include "llvm/Support/ErrorHandling.h"
+#include <algorithm>
+#include <iterator>
 #include <limits>
 #include <list>
+#include <map>
 #include <set>
-#include <vector>
-#include <iterator>
 #include <utility>
-#include <algorithm>
-#include <map>
+#include <vector>
 
 using namespace clang;
 using namespace sema;
@@ -2984,7 +2984,7 @@ static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result,
     if (IFace->getImplementation()) {
       ShadowContextRAII Shadow(Visited);
       LookupVisibleDecls(IFace->getImplementation(), Result,
-                         QualifiedNameLookup, true, Consumer, Visited);
+                         QualifiedNameLookup, InBaseClass, Consumer, Visited);
     }
   } else if (ObjCProtocolDecl *Protocol = dyn_cast<ObjCProtocolDecl>(Ctx)) {
     for (ObjCProtocolDecl::protocol_iterator I = Protocol->protocol_begin(),
index 81f1ba186f1dd3ffae85b25a99f0b986c3b5cbf9..216481a5c1f73f432b81ec7452e8329259771499 100644 (file)
@@ -43,4 +43,4 @@
 // CHECK: ObjCIvarDecl:{ResultType float}{TypedText _prop2} (35)
 // CHECK-NOT: prop2
 // CHECK-NOT: prop3
-// CHECK: ObjCIvarDecl:{ResultType double}{TypedText _prop4} (37)
+// CHECK: ObjCIvarDecl:{ResultType double}{TypedText _prop4} (35)