diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:15:56 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:15:56 +0000 |
| commit | c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81 (patch) | |
| tree | aa49a8ef4722d9a24f14cc1481c445a49c29f808 /include | |
| parent | 5a7f34958ca6f2fa8a52e9921cf521cbb92ae070 (diff) | |
| download | clang-c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81.tar.gz clang-c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81.tar.bz2 clang-c8aecc2dfb2e393d9eeaedeca22ff8cd7149af81.tar.xz | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/clang/AST/ExprCXX.h | 8 |
1 files changed, 5 insertions, 3 deletions
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<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; |
