Changeset 0dd3a2f for translator/SynTree/Type.cc
- Timestamp:
- May 18, 2015, 11:20:23 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 51587aa
- Parents:
- a32b204
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SynTree/Type.cc
ra32b204 r0dd3a2f 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 // Type.cc -- 8 // 9 // Author : Richard C. Bilson 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 11:00:29 2015 13 // Update Count : 1 14 // 15 1 16 #include "SynTree.h" 2 17 #include "Visitor.h" … … 41 56 void Type::print( std::ostream &os, int indent ) const { 42 57 if ( ! forall.empty() ) { 43 os << "forall" << std::endl;44 printAll( forall, os, indent + 4 );45 os << std::string( indent+2, ' ' );58 os << "forall" << std::endl; 59 printAll( forall, os, indent + 4 ); 60 os << std::string( indent+2, ' ' ); 46 61 } // if 47 62 if ( tq.isConst ) { 48 os << "const ";63 os << "const "; 49 64 } // if 50 65 if ( tq.isVolatile ) { 51 os << "volatile ";66 os << "volatile "; 52 67 } // if 53 68 if ( tq.isRestrict ) { 54 os << "restrict ";69 os << "restrict "; 55 70 } // if 56 71 if ( tq.isLvalue ) { 57 os << "lvalue ";72 os << "lvalue "; 58 73 } // if 59 74 if ( tq.isAtomic ) { 60 os << "_Atomic ";75 os << "_Atomic "; 61 76 } // if 62 77 } 78 79 // Local Variables: // 80 // tab-width: 4 // 81 // mode: c++ // 82 // compile-command: "make install" // 83 // End: //
Note: See TracChangeset
for help on using the changeset viewer.