Changeset 43c89a7 for src/SynTree


Ignore:
Timestamp:
Feb 24, 2017, 3:58:03 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, 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:
167a9c8
Parents:
24cde55
Message:

add hoistType flag (currently unused)

Location:
src/SynTree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ReferenceToType.cc

    r24cde55 r43c89a7  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb  2 17:45:07 2017
    13 // Update Count     : 23
     12// Last Modified On : Thu Feb 23 16:38:54 2017
     13// Update Count     : 24
    1414//
    1515
     
    2323#include "Common/utility.h"
    2424
    25 ReferenceToType::ReferenceToType( const Type::Qualifiers &tq, const std::string &name, const std::list< Attribute * > & attributes ) : Type( tq, attributes ), name( name ) {
     25ReferenceToType::ReferenceToType( const Type::Qualifiers &tq, const std::string &name, const std::list< Attribute * > & attributes ) : Type( tq, attributes ), name( name ), hoistType( false ) {
    2626}
    2727
    28 ReferenceToType::ReferenceToType( const ReferenceToType &other ) : Type( other ), name( other.name ) {
     28ReferenceToType::ReferenceToType( const ReferenceToType &other ) : Type( other ), name( other.name ), hoistType( other.hoistType ) {
    2929        cloneAll( other.parameters, parameters );
    3030}
  • src/SynTree/Type.h

    r24cde55 r43c89a7  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb  2 17:43:01 2017
    13 // Update Count     : 33
     12// Last Modified On : Thu Feb 23 16:38:53 2017
     13// Update Count     : 34
    1414//
    1515
     
    240240        void set_name( std::string newValue ) { name = newValue; }
    241241        std::list< Expression* >& get_parameters() { return parameters; }
     242        bool get_hoistType() const { return hoistType; }
     243        void set_hoistType( bool newValue ) { hoistType = newValue; }
    242244
    243245        virtual ReferenceToType *clone() const = 0;
     
    250252        std::string name;
    251253  private:
     254        bool hoistType;
    252255};
    253256
Note: See TracChangeset for help on using the changeset viewer.