Changes in src/ResolvExpr/RenameVars.cc [ea6332d:89e6ffc]
- File:
-
- 1 edited
-
src/ResolvExpr/RenameVars.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/RenameVars.cc
rea6332d r89e6ffc 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // RenameVars.cc -- 7 // RenameVars.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <ext/alloc_traits.h> // for __alloc_traits<>::value_type 17 #include <memory> // for allocator_traits<>::value_type 18 #include <sstream> // for operator<<, basic_ostream, ostring... 19 #include <utility> // for pair 16 #include <sstream> 20 17 21 #include "Common/SemanticError.h" // for SemanticError22 18 #include "RenameVars.h" 23 #include "SynTree/ Declaration.h" // for DeclarationWithType, TypeDecl, Dec...24 #include "SynTree/ Expression.h" // for Expression25 #include "SynTree/ Type.h" // for Type, TypeInstType, TraitInstType26 #include "SynTree/ Visitor.h" // for acceptAll, maybeAccept19 #include "SynTree/Visitor.h" 20 #include "SynTree/Type.h" 21 #include "SynTree/Declaration.h" 22 #include "SynTree/Expression.h" 27 23 28 24 namespace ResolvExpr { … … 129 125 mapStack.push_front( mapStack.front() ); 130 126 // renames all "forall" type names to `_${level}_${name}' 131 for ( Type::ForallList::iterator i = type->get_forall().begin(); i != type->get_forall().end(); ++i ) {127 for ( std::list< TypeDecl* >::iterator i = type->get_forall().begin(); i != type->get_forall().end(); ++i ) { 132 128 std::ostringstream output; 133 129 output << "_" << level << "_" << (*i)->get_name();
Note:
See TracChangeset
for help on using the changeset viewer.