Changeset 58fe85a for src/SynTree/NamedTypeDecl.cc
- Timestamp:
- Jan 7, 2021, 3:27:00 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2b4daf2, 64aeca0
- Parents:
- 3c64c668 (diff), eef8dfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/NamedTypeDecl.cc
r3c64c668 r58fe85a 22 22 #include "LinkageSpec.h" // for Spec, Cforall, linkageName 23 23 #include "Type.h" // for Type, Type::StorageClasses 24 #include "CompilationState.h" 24 25 25 26 NamedTypeDecl::NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *base ) … … 28 29 NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other ) 29 30 : Parent( other ), base( maybeClone( other.base ) ) { 30 cloneAll( other.parameters, parameters );31 31 cloneAll( other.assertions, assertions ); 32 32 } … … 34 34 NamedTypeDecl::~NamedTypeDecl() { 35 35 delete base; 36 deleteAll( parameters );37 36 deleteAll( assertions ); 38 37 } … … 41 40 using namespace std; 42 41 43 if ( name != "" ) os << name << ": "; 42 if ( ! name.empty() ) { 43 if( deterministic_output && isUnboundType(name) ) os << "[unbound]:"; 44 else os << name << ": "; 45 } 44 46 45 47 if ( linkage != LinkageSpec::Cforall ) { … … 51 53 os << " for "; 52 54 base->print( os, indent+1 ); 53 } // if54 if ( ! parameters.empty() ) {55 os << endl << indent << "... with parameters" << endl;56 printAll( parameters, os, indent+1 );57 55 } // if 58 56 if ( ! assertions.empty() ) { … … 72 70 base->print( os, indent+1 ); 73 71 } // if 74 if ( ! parameters.empty() ) {75 os << endl << indent << "... with parameters" << endl;76 printAll( parameters, os, indent+1 );77 } // if78 72 } 79 73
Note:
See TracChangeset
for help on using the changeset viewer.