diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-17 12:16:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 12:16:17 -0800 |
commit | 248b977790b429ebfd22481462193e3e35c57ce2 (patch) | |
tree | 9a59a408d113d6a3347f013c2492291769406e82 /src/expr/expr_template.cpp | |
parent | 4538f5fe95758f2507c191ab39175491f24e6f67 (diff) |
Removes yet more throw specifiers. Updating the documentation as needed. (#1518)
Diffstat (limited to 'src/expr/expr_template.cpp')
-rw-r--r-- | src/expr/expr_template.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/expr/expr_template.cpp b/src/expr/expr_template.cpp index 0ed3601fc..f4dd294a7 100644 --- a/src/expr/expr_template.cpp +++ b/src/expr/expr_template.cpp @@ -337,7 +337,8 @@ Expr Expr::getOperator() const { return Expr(d_exprManager, new Node(d_node->getOperator())); } -Type Expr::getType(bool check) const throw (TypeCheckingException) { +Type Expr::getType(bool check) const +{ ExprManagerScope ems(*this); Assert(d_node != NULL, "Unexpected NULL expression pointer!"); PrettyCheckArgument(!d_node->isNull(), this, @@ -499,14 +500,8 @@ void Expr::toStream(std::ostream& out, int depth, bool types, size_t dag, d_node->toStream(out, depth, types, dag, language); } -Node Expr::getNode() const throw() { - return *d_node; -} - -TNode Expr::getTNode() const throw() { - return *d_node; -} - +Node Expr::getNode() const { return *d_node; } +TNode Expr::getTNode() const { return *d_node; } Expr Expr::notExpr() const { Assert(d_exprManager != NULL, "Don't have an expression manager for this expression!"); |