Changeset fa463f1 for src/SynTree


Ignore:
Timestamp:
Aug 30, 2016, 4:26:01 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
c8dfcd3
Parents:
3906301 (diff), 32a2a99 (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 ctor

Location:
src/SynTree
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r3906301 rfa463f1  
    153153  public:
    154154        NamedTypeDecl( const std::string &name, DeclarationNode::StorageClass sc, Type *type );
    155         NamedTypeDecl( const TypeDecl &other );
     155        NamedTypeDecl( const NamedTypeDecl &other );
    156156        virtual ~NamedTypeDecl();
    157157
  • src/SynTree/NamedTypeDecl.cc

    r3906301 rfa463f1  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // NamedTypeDecl.cc -- 
     7// NamedTypeDecl.cc --
    88//
    99// Author           : Richard C. Bilson
     
    2121        : Parent( name, sc, LinkageSpec::Cforall ), base( base ) {}
    2222
    23 NamedTypeDecl::NamedTypeDecl( const TypeDecl &other )
     23NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other )
    2424        : Parent( other ), base( maybeClone( other.base ) ) {
    2525        cloneAll( other.parameters, parameters );
     
    3535void NamedTypeDecl::print( std::ostream &os, int indent ) const {
    3636        using namespace std;
    37        
     37
    3838        if ( get_name() != "" ) {
    3939                os << get_name() << ": ";
     
    5959void NamedTypeDecl::printShort( std::ostream &os, int indent ) const {
    6060        using namespace std;
    61        
     61
    6262        if ( get_name() != "" ) {
    6363                os << get_name() << ": ";
  • src/SynTree/ReferenceToType.cc

    r3906301 rfa463f1  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ReferenceToType.cc -- 
     7// ReferenceToType.cc --
    88//
    99// Author           : Richard C. Bilson
     
    3636void ReferenceToType::print( std::ostream &os, int indent ) const {
    3737        using std::endl;
    38        
     38
    3939        Type::print( os, indent );
    4040        os << "instance of " << typeString() << " " << name << " ";
     
    128128}
    129129
     130TypeInstType::~TypeInstType() {
     131        // delete baseType; //This is shared and should not be deleted
     132}
     133
    130134void TypeInstType::set_baseType( TypeDecl *newValue ) {
    131135        baseType = newValue;
     
    137141void TypeInstType::print( std::ostream &os, int indent ) const {
    138142        using std::endl;
    139        
     143
    140144        Type::print( os, indent );
    141145        os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " function type) ";
  • src/SynTree/Type.h

    r3906301 rfa463f1  
    327327        TypeInstType( const Type::Qualifiers &tq, const std::string &name, bool isFtype );
    328328        TypeInstType( const TypeInstType &other ) : Parent( other ), baseType( other.baseType ), isFtype( other.isFtype ) {}
     329        ~TypeInstType();
    329330
    330331        TypeDecl *get_baseType() const { return baseType; }
Note: See TracChangeset for help on using the changeset viewer.