[cfe-commits] r113634 - /cfe/trunk/include/clang/AST/ExprCXX.h

Sebastian Redl sebastian.redl at getdesigned.at
Fri Sep 10 14:15:56 PDT 2010


Author: cornedbee
Date: Fri Sep 10 16:15:56 2010
New Revision: 113634

URL: http://llvm.org/viewvc/llvm-project?rev=113634&view=rev
Log:
Follow Ted's example and hide CXXNoexceptExpr's setters from all but serialization.

Modified:
    cfe/trunk/include/clang/AST/ExprCXX.h

Modified: cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprCXX.h?rev=113634&r1=113633&r2=113634&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/trunk/include/clang/AST/ExprCXX.h Fri Sep 10 16:15:56 2010
@@ -2440,6 +2440,11 @@
   Stmt *Operand;
   SourceRange Range;
 
+  friend class ASTStmtReader;
+  void setOperand(Expr *E) { Operand = E; }
+  void setSourceRange(const SourceRange &R) { Range = R; }
+  void setValue(bool V) { Value = V; }
+
 public:
   CXXNoexceptExpr(QualType Ty, Expr *Operand, CanThrowResult Val,
                   SourceLocation Keyword, SourceLocation RParen)
@@ -2453,13 +2458,10 @@
   { }
 
   Expr *getOperand() const { return static_cast<Expr*>(Operand); }
-  void setOperand(Expr *E) { Operand = E; }
 
   virtual SourceRange getSourceRange() const { return Range; }
-  void setSourceRange(const SourceRange &R) { Range = R; }
 
   bool getValue() const { return Value; }
-  void setValue(bool V) { Value = V; }
 
   static bool classof(const Stmt *T) {
     return T->getStmtClass() == CXXNoexceptExprClass;





More information about the cfe-commits mailing list