source: src/SynTree/AddStmtVisitor.h @ 06ccbc7

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 06ccbc7 was 4e06c1e, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

changes for switch and choose statements

  • Property mode set to 100644
File size: 1.2 KB
Line 
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
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Tue Jul 12 17:50:32 2016
13// Update Count     : 8
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
24class 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.