Changeset b1e63ac5 for src/SynTree/Type.h
- Timestamp:
- Jul 4, 2017, 9:40:16 AM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.h
r9c951e3 rb1e63ac5 307 307 private: 308 308 Type *base; 309 unsigned int level = 0;310 309 }; 311 310 … … 354 353 virtual void print( std::ostream & os, int indent = 0 ) const; 355 354 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 {} 357 356 protected: 358 357 virtual std::string typeString() const = 0; … … 501 500 class TupleType : public Type { 502 501 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 * >() ); 504 503 TupleType( const TupleType& ); 505 504 virtual ~TupleType(); … … 508 507 typedef value_type::iterator iterator; 509 508 510 std::list<Type *>& get_types() { return types; }509 std::list<Type *> & get_types() { return types; } 511 510 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; } 512 515 513 516 iterator begin() { return types.begin(); } … … 526 529 virtual void print( std::ostream & os, int indent = 0 ) const; 527 530 private: 528 std::list<Type*> types; 531 std::list<Type *> types; 532 std::list<Declaration *> members; 529 533 }; 530 534
Note: See TracChangeset
for help on using the changeset viewer.