ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since a32b204 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[51b7345] | 1 | #ifndef _TUPLE_FUNCHK_H_ |
---|
| 2 | #define _TUPLE_FUNCHK_H_ |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | #include <list> |
---|
| 6 | #include <iostream> |
---|
| 7 | |
---|
| 8 | #include "UniqueName.h" |
---|
| 9 | |
---|
| 10 | #include "SynTree/SynTree.h" |
---|
| 11 | #include "SynTree/Mutator.h" |
---|
| 12 | |
---|
| 13 | #include "SynTree/Type.h" |
---|
| 14 | #include "SynTree/Declaration.h" |
---|
| 15 | #include "SynTree/Expression.h" |
---|
| 16 | #include "SynTree/Statement.h" |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | namespace Tuples { |
---|
| 20 | class FunctionChecker : public Mutator |
---|
| 21 | { |
---|
| 22 | typedef Mutator Parent; |
---|
| 23 | |
---|
| 24 | public: |
---|
| 25 | FunctionChecker( bool _topLevel = false, UniqueName *_nameGen = 0 ); |
---|
| 26 | ~FunctionChecker(); |
---|
| 27 | |
---|
| 28 | virtual Expression* mutate(ApplicationExpr *applicationExpr); |
---|
| 29 | virtual Statement* mutate(ExprStmt *exprStmt); |
---|
| 30 | |
---|
| 31 | private: |
---|
| 32 | bool topLevel; |
---|
| 33 | UniqueName *nameGen; |
---|
| 34 | std::list< ObjectDecl * > temporaries; |
---|
| 35 | std::list< Expression * > tempExpr; |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | class TupleDistrib : public Mutator { |
---|
| 39 | public: |
---|
| 40 | virtual Expression* mutate(UntypedExpr *utExpr); |
---|
| 41 | |
---|
| 42 | private: |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | void checkFunctions( std::list< Declaration * > translationUnit ); |
---|
| 46 | |
---|
| 47 | } // namespace Tuples |
---|
| 48 | |
---|
| 49 | #endif // #ifndef _TUPLE_FUNCHK_H_ |
---|
| 50 | |
---|
| 51 | /* |
---|
| 52 | Local Variables: |
---|
| 53 | mode: c++ |
---|
| 54 | End: |
---|
| 55 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.