ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 6e7e2b36 was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[a32b204] | 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 | // RenameVars.h --
|
---|
| 8 | //
|
---|
| 9 | // Author : Richard C. Bilson
|
---|
| 10 | // Created On : Sun May 17 12:10:28 2015
|
---|
| 11 | // Last Modified By : Peter A. Buhr
|
---|
| 12 | // Last Modified On : Sun May 17 12:11:53 2015
|
---|
| 13 | // Update Count : 2
|
---|
| 14 | //
|
---|
[51b73452] | 15 |
|
---|
| 16 | #ifndef RESOLVEXPR_RENAMEVARS_H
|
---|
| 17 | #define RESOLVEXPR_RENAMEVARS_H
|
---|
| 18 |
|
---|
| 19 | #include <list>
|
---|
| 20 | #include <map>
|
---|
| 21 | #include <string>
|
---|
| 22 |
|
---|
| 23 | #include "SynTree/SynTree.h"
|
---|
| 24 | #include "SynTree/Visitor.h"
|
---|
| 25 |
|
---|
| 26 | namespace ResolvExpr {
|
---|
[a32b204] | 27 | class RenameVars : public Visitor {
|
---|
| 28 | public:
|
---|
| 29 | RenameVars();
|
---|
| 30 | void reset();
|
---|
| 31 | private:
|
---|
| 32 | virtual void visit( VoidType *basicType );
|
---|
| 33 | virtual void visit( BasicType *basicType );
|
---|
| 34 | virtual void visit( PointerType *pointerType );
|
---|
| 35 | virtual void visit( ArrayType *arrayType );
|
---|
| 36 | virtual void visit( FunctionType *functionType );
|
---|
| 37 | virtual void visit( StructInstType *aggregateUseType );
|
---|
| 38 | virtual void visit( UnionInstType *aggregateUseType );
|
---|
| 39 | virtual void visit( EnumInstType *aggregateUseType );
|
---|
| 40 | virtual void visit( ContextInstType *aggregateUseType );
|
---|
| 41 | virtual void visit( TypeInstType *aggregateUseType );
|
---|
| 42 | virtual void visit( TupleType *tupleType );
|
---|
| 43 |
|
---|
| 44 | void typeBefore( Type *type );
|
---|
| 45 | void typeAfter( Type *type );
|
---|
| 46 | int level;
|
---|
| 47 | std::list< std::map< std::string, std::string > > mapStack;
|
---|
| 48 | };
|
---|
| 49 |
|
---|
| 50 | extern RenameVars global_renamer;
|
---|
[51b73452] | 51 | } // namespace ResolvExpr
|
---|
| 52 |
|
---|
[a32b204] | 53 | #endif // RENAMEVARS_H
|
---|
| 54 |
|
---|
| 55 | // Local Variables: //
|
---|
| 56 | // tab-width: 4 //
|
---|
| 57 | // mode: c++ //
|
---|
| 58 | // compile-command: "make install" //
|
---|
| 59 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.