]> granicus.if.org Git - clang/commitdiff
Make 'setProperty()', 'setBase()', and 'setLocation()' private in ObjCPropertyRefExpr...
authorTed Kremenek <kremenek@apple.com>
Fri, 10 Sep 2010 20:55:52 +0000 (20:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 10 Sep 2010 20:55:52 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113626 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ExprObjC.h

index 8a09f4e9a6a9256b0c9807d84571f954cb3d4e60..15b70075cbfb3a4652f04d440f04d59253e9a4ee 100644 (file)
@@ -242,14 +242,11 @@ public:
     : Expr(ObjCPropertyRefExprClass, Empty) {}
 
   ObjCPropertyDecl *getProperty() const { return AsProperty; }
-  void setProperty(ObjCPropertyDecl *D) { AsProperty = D; }
 
   const Expr *getBase() const { return cast<Expr>(Base); }
   Expr *getBase() { return cast<Expr>(Base); }
-  void setBase(Expr *base) { Base = base; }
 
   SourceLocation getLocation() const { return IdLoc; }
-  void setLocation(SourceLocation L) { IdLoc = L; }
 
   virtual SourceRange getSourceRange() const {
     return SourceRange(getBase()->getLocStart(), IdLoc);
@@ -263,6 +260,11 @@ public:
   // Iterators
   virtual child_iterator child_begin();
   virtual child_iterator child_end();
+private:
+  friend class ASTStmtReader;
+  void setProperty(ObjCPropertyDecl *D) { AsProperty = D; }
+  void setBase(Expr *base) { Base = base; }
+  void setLocation(SourceLocation L) { IdLoc = L; }
 };
 
 /// ObjCImplicitSetterGetterRefExpr - A dot-syntax expression to access two