ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since 79970ed was 4e06c1e, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago |
changes for switch and choose statements
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[51fcaf8d] | 1 | //
|
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
|
---|
| 3 | //
|
---|
| 4 | // The contents of this file are covered under the licence agreement in the
|
---|
| 5 | // file "LICENCE" distributed with Cforall.
|
---|
| 6 | //
|
---|
| 7 | // AddStmtVisitor.h --
|
---|
| 8 | //
|
---|
| 9 | // Author : Rob Schluntz
|
---|
| 10 | // Created On : Wed Jun 22 12:05:48 2016
|
---|
[4e06c1e] | 11 | // Last Modified By : Peter A. Buhr
|
---|
| 12 | // Last Modified On : Tue Jul 12 17:50:32 2016
|
---|
| 13 | // Update Count : 8
|
---|
[51fcaf8d] | 14 | //
|
---|
| 15 |
|
---|
| 16 | #ifndef ADD_STATEMENT_VISITOR_H
|
---|
| 17 | #define ADD_STATEMENT_VISITOR_H
|
---|
| 18 |
|
---|
| 19 | #include <list>
|
---|
| 20 |
|
---|
| 21 | #include "SynTree/SynTree.h"
|
---|
| 22 | #include "SynTree/Visitor.h"
|
---|
| 23 |
|
---|
| 24 | class AddStmtVisitor : public Visitor {
|
---|
| 25 | public:
|
---|
| 26 | typedef Visitor Parent;
|
---|
| 27 |
|
---|
| 28 | using Parent::visit;
|
---|
| 29 | virtual void visit(CompoundStmt *compoundStmt);
|
---|
| 30 | virtual void visit(IfStmt *ifStmt);
|
---|
| 31 | virtual void visit(WhileStmt *whileStmt);
|
---|
| 32 | virtual void visit(ForStmt *forStmt);
|
---|
| 33 | virtual void visit(SwitchStmt *switchStmt);
|
---|
| 34 | virtual void visit(CaseStmt *caseStmt);
|
---|
| 35 | virtual void visit(CatchStmt *catchStmt);
|
---|
| 36 |
|
---|
| 37 | protected:
|
---|
| 38 | void visitStatementList( std::list< Statement * > & );
|
---|
| 39 | Statement * visitStatement( Statement * );
|
---|
| 40 | std::list< Statement* > stmtsToAdd;
|
---|
| 41 | std::list< Statement* > stmtsToAddAfter;
|
---|
| 42 | };
|
---|
| 43 |
|
---|
| 44 | #endif // ADD_STATEMENT_VISITOR_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.