From: Sebastian Redl Date: Fri, 10 Sep 2010 21:15:56 +0000 (+0000) Subject: Follow Ted's example and hide CXXNoexceptExpr's setters from all but serialization. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81;p=clang Follow Ted's example and hide CXXNoexceptExpr's setters from all but serialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113634 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ExprCXX.h b/include/clang/AST/ExprCXX.h index 4b5b2ae225..4ba0d07e95 100644 --- a/include/clang/AST/ExprCXX.h +++ b/include/clang/AST/ExprCXX.h @@ -2440,6 +2440,11 @@ class CXXNoexceptExpr : public Expr { 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 @@ public: { } Expr *getOperand() const { return static_cast(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;