Ignore:
Timestamp:
Jul 4, 2017, 9:40:16 AM (7 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:
208e5be
Parents:
9c951e3 (diff), f7cb0bc (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 references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Type.h

    r9c951e3 rb1e63ac5  
    307307private:
    308308        Type *base;
    309         unsigned int level = 0;
    310309};
    311310
     
    354353        virtual void print( std::ostream & os, int indent = 0 ) const;
    355354
    356         virtual void lookup( const std::string & name, std::list< Declaration* > & foundDecls ) const {}
     355        virtual void lookup( __attribute__((unused)) const std::string & name, __attribute__((unused)) std::list< Declaration* > & foundDecls ) const {}
    357356  protected:
    358357        virtual std::string typeString() const = 0;
     
    501500class TupleType : public Type {
    502501  public:
    503         TupleType( const Type::Qualifiers & tq, const std::list< Type * > & types = std::list< Type * >(), const std::list< Attribute * > & attributes = std::list< Attribute * >()  );
     502        TupleType( const Type::Qualifiers & tq, const std::list< Type * > & types, const std::list< Attribute * > & attributes = std::list< Attribute * >()  );
    504503        TupleType( const TupleType& );
    505504        virtual ~TupleType();
     
    508507        typedef value_type::iterator iterator;
    509508
    510         std::list<Type*>& get_types() { return types; }
     509        std::list<Type *> & get_types() { return types; }
    511510        virtual unsigned size() const { return types.size(); };
     511
     512        // For now, this is entirely synthetic -- tuple types always have unnamed members.
     513        // Eventually, we may allow named tuples, in which case members should subsume types
     514        std::list<Declaration *> & get_members() { return members; }
    512515
    513516        iterator begin() { return types.begin(); }
     
    526529        virtual void print( std::ostream & os, int indent = 0 ) const;
    527530  private:
    528         std::list<Type*> types;
     531        std::list<Type *> types;
     532        std::list<Declaration *> members;
    529533};
    530534
Note: See TracChangeset for help on using the changeset viewer.