Ignore:
Timestamp:
Jan 7, 2021, 2:55:57 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
58fe85a
Parents:
bdfc032 (diff), 44e37ef (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.
Message:

Merge branch 'master' into dkobets-vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/NamedTypeDecl.cc

    rbdfc032 reef8dfb  
    2222#include "LinkageSpec.h"         // for Spec, Cforall, linkageName
    2323#include "Type.h"                // for Type, Type::StorageClasses
     24#include "CompilationState.h"
    2425
    2526NamedTypeDecl::NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *base )
     
    2829NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other )
    2930        : Parent( other ), base( maybeClone( other.base ) ) {
    30         cloneAll( other.parameters, parameters );
    3131        cloneAll( other.assertions, assertions );
    3232}
     
    3434NamedTypeDecl::~NamedTypeDecl() {
    3535        delete base;
    36         deleteAll( parameters );
    3736        deleteAll( assertions );
    3837}
     
    4140        using namespace std;
    4241
    43         if ( name != "" ) os << name << ": ";
     42        if ( ! name.empty() ) {
     43                if( deterministic_output && isUnboundType(name) ) os << "[unbound]:";
     44                else os << name << ": ";
     45        }
    4446
    4547        if ( linkage != LinkageSpec::Cforall ) {
     
    5153                os << " for ";
    5254                base->print( os, indent+1 );
    53         } // if
    54         if ( ! parameters.empty() ) {
    55                 os << endl << indent << "... with parameters" << endl;
    56                 printAll( parameters, os, indent+1 );
    5755        } // if
    5856        if ( ! assertions.empty() ) {
     
    7270                base->print( os, indent+1 );
    7371        } // if
    74         if ( ! parameters.empty() ) {
    75                 os << endl << indent << "... with parameters" << endl;
    76                 printAll( parameters, os, indent+1 );
    77         } // if
    7872}
    7973
Note: See TracChangeset for help on using the changeset viewer.