Changes in src/SynTree/Statement.h [6a276a0:68f9c43]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r6a276a0 r68f9c43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 8 14:53:02 201813 // Update Count : 7 812 // Last Modified On : Sun Sep 3 20:46:46 2017 13 // Update Count : 77 14 14 // 15 15 … … 38 38 39 39 Statement( const std::list<Label> & labels = {} ); 40 virtual ~Statement();41 40 42 41 std::list<Label> & get_labels() { return labels; } … … 56 55 CompoundStmt( std::list<Statement *> stmts ); 57 56 CompoundStmt( const CompoundStmt &other ); 58 virtual ~CompoundStmt();59 57 60 58 std::list<Statement*>& get_kids() { return kids; } … … 84 82 ExprStmt( Expression *expr ); 85 83 ExprStmt( const ExprStmt &other ); 86 virtual ~ExprStmt();87 84 88 85 Expression *get_expr() { return expr; } … … 105 102 AsmStmt( bool voltile, Expression *instruction, std::list<Expression *> output, std::list<Expression *> input, std::list<ConstantExpr *> clobber, std::list<Label> gotolabels ); 106 103 AsmStmt( const AsmStmt &other ); 107 virtual ~AsmStmt();108 104 109 105 bool get_voltile() { return voltile; } … … 136 132 std::list<Statement *> initialization = std::list<Statement *>() ); 137 133 IfStmt( const IfStmt &other ); 138 virtual ~IfStmt();139 134 140 135 std::list<Statement *> &get_initialization() { return initialization; } … … 159 154 SwitchStmt( Expression *condition, const std::list<Statement *> &statements ); 160 155 SwitchStmt( const SwitchStmt &other ); 161 virtual ~SwitchStmt();162 156 163 157 Expression *get_condition() { return condition; } … … 181 175 CaseStmt( Expression *conditions, const std::list<Statement *> &stmts, bool isdef = false ) throw (SemanticErrorException); 182 176 CaseStmt( const CaseStmt &other ); 183 virtual ~CaseStmt();184 177 185 178 static CaseStmt * makeDefault( const std::list<Label> & labels = {}, std::list<Statement *> stmts = std::list<Statement *>() ); … … 212 205 Statement *body, bool isDoWhile = false ); 213 206 WhileStmt( const WhileStmt &other ); 214 virtual ~WhileStmt();215 207 216 208 Expression *get_condition() { return condition; } … … 237 229 Expression *condition = 0, Expression *increment = 0, Statement *body = 0 ); 238 230 ForStmt( const ForStmt &other ); 239 virtual ~ForStmt();240 231 241 232 std::list<Statement *> &get_initialization() { return initialization; } … … 255 246 class BranchStmt : public Statement { 256 247 public: 257 enum Type { Goto = 0, Break, Continue , FallThrough, FallThroughDefault};248 enum Type { Goto = 0, Break, Continue }; 258 249 259 250 // originalTarget kept for error messages. … … 290 281 ReturnStmt( Expression *expr ); 291 282 ReturnStmt( const ReturnStmt &other ); 292 virtual ~ReturnStmt();293 283 294 284 Expression *get_expr() { return expr; } … … 311 301 ThrowStmt( Kind kind, Expression * expr, Expression * target = nullptr ); 312 302 ThrowStmt( const ThrowStmt &other ); 313 virtual ~ThrowStmt();314 303 315 304 Kind get_kind() { return kind; } … … 333 322 TryStmt( CompoundStmt *tryBlock, std::list<CatchStmt *> &handlers, FinallyStmt *finallyBlock = 0 ); 334 323 TryStmt( const TryStmt &other ); 335 virtual ~TryStmt();336 324 337 325 CompoundStmt *get_block() const { return block; } … … 360 348 Expression *cond, Statement *body ); 361 349 CatchStmt( const CatchStmt &other ); 362 virtual ~CatchStmt();363 350 364 351 Kind get_kind() { return kind; } … … 382 369 FinallyStmt( CompoundStmt *block ); 383 370 FinallyStmt( const FinallyStmt &other ); 384 virtual ~FinallyStmt();385 371 386 372 CompoundStmt *get_block() const { return block; } … … 409 395 WaitForStmt(); 410 396 WaitForStmt( const WaitForStmt & ); 411 virtual ~WaitForStmt();412 397 413 398 std::vector<Clause> clauses; … … 438 423 WithStmt( const std::list< Expression * > & exprs, Statement * stmt ); 439 424 WithStmt( const WithStmt & other ); 440 virtual ~WithStmt();441 425 442 426 virtual WithStmt * clone() const override { return new WithStmt( *this ); } … … 454 438 DeclStmt( Declaration *decl ); 455 439 DeclStmt( const DeclStmt &other ); 456 virtual ~DeclStmt();457 440 458 441 Declaration *get_decl() const { return decl; } … … 476 459 ImplicitCtorDtorStmt( Statement * callStmt ); 477 460 ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ); 478 virtual ~ImplicitCtorDtorStmt();479 461 480 462 Statement *get_callStmt() const { return callStmt; }
Note:
See TracChangeset
for help on using the changeset viewer.