diff options
Diffstat (limited to 'include/clang/AST')
-rw-r--r-- | include/clang/AST/Expr.h | 47 | ||||
-rw-r--r-- | include/clang/AST/StmtNodes.def | 1 |
2 files changed, 0 insertions, 48 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index c2bb87d3c0..23fd420914 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -2382,53 +2382,6 @@ public: virtual child_iterator child_end(); }; - -class ParenListExpr : public Expr { - Stmt **Exprs; - unsigned NumExprs; - SourceLocation LParenLoc, RParenLoc; - -protected: - virtual void DoDestroy(ASTContext& C); - -public: - ParenListExpr(ASTContext& C, SourceLocation lparenloc, Expr **exprs, - unsigned numexprs, SourceLocation rparenloc); - - ~ParenListExpr() {} - - /// \brief Build an empty paren list. - //explicit ParenListExpr(EmptyShell Empty) : Expr(ParenListExprClass, Empty) { } - - unsigned getNumExprs() const { return NumExprs; } - - const Expr* getExpr(unsigned Init) const { - assert(Init < getNumExprs() && "Initializer access out of range!"); - return cast_or_null<Expr>(Exprs[Init]); - } - - Expr* getExpr(unsigned Init) { - assert(Init < getNumExprs() && "Initializer access out of range!"); - return cast_or_null<Expr>(Exprs[Init]); - } - - SourceLocation getLParenLoc() const { return LParenLoc; } - SourceLocation getRParenLoc() const { return RParenLoc; } - - virtual SourceRange getSourceRange() const { - return SourceRange(LParenLoc, RParenLoc); - } - static bool classof(const Stmt *T) { - return T->getStmtClass() == ParenListExprClass; - } - static bool classof(const ParenListExpr *) { return true; } - - // Iterators - virtual child_iterator child_begin(); - virtual child_iterator child_end(); -}; - - //===----------------------------------------------------------------------===// // Clang Extensions //===----------------------------------------------------------------------===// diff --git a/include/clang/AST/StmtNodes.def b/include/clang/AST/StmtNodes.def index 924ad3970f..914ea2798b 100644 --- a/include/clang/AST/StmtNodes.def +++ b/include/clang/AST/StmtNodes.def @@ -91,7 +91,6 @@ EXPR(ExtVectorElementExpr , Expr) EXPR(InitListExpr , Expr) EXPR(DesignatedInitExpr , Expr) EXPR(ImplicitValueInitExpr , Expr) -EXPR(ParenListExpr , Expr) EXPR(VAArgExpr , Expr) // GNU Extensions. |