Changeset 9bfc9da for src/SynTree/Type.h
- Timestamp:
- Mar 7, 2018, 4:59:00 PM (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:
- 02c816fc
- Parents:
- 2097cd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.h
r2097cd4 r9bfc9da 178 178 virtual bool isComplete() const { return true; } 179 179 180 virtual AggregateDecl * getAggr() { assertf( false, "Non-aggregate type: %s", toString( this ).c_str() ); } 180 virtual AggregateDecl * getAggr() { assertf( false, "Non-aggregate type: %s", toCString( this ) ); } 181 182 virtual TypeSubstitution genericSubstitution() const; 181 183 182 184 virtual Type *clone() const = 0; … … 329 331 virtual unsigned size() const override { return base->size(); } 330 332 333 virtual TypeSubstitution genericSubstitution() const override; 334 331 335 virtual ReferenceType *clone() const override { return new ReferenceType( *this ); } 332 336 virtual void accept( Visitor & v ) override { v.visit( this ); } … … 406 410 /// Accesses generic parameters of base struct (NULL if none such) 407 411 std::list<TypeDecl*> * get_baseParameters(); 412 const std::list<TypeDecl*> * get_baseParameters() const; 408 413 409 414 virtual bool isComplete() const override; 410 415 411 416 virtual AggregateDecl * getAggr() override; 417 418 virtual TypeSubstitution genericSubstitution() const override; 412 419 413 420 /// Looks up the members of this struct named "name" and places them into "foundDecls". … … 439 446 440 447 /// Accesses generic parameters of base union (NULL if none such) 441 std::list< TypeDecl * > * get_baseParameters(); 448 std::list<TypeDecl*> * get_baseParameters(); 449 const std::list<TypeDecl*> * get_baseParameters() const; 442 450 443 451 virtual bool isComplete() const override; 444 452 445 453 virtual AggregateDecl * getAggr() override; 454 455 virtual TypeSubstitution genericSubstitution() const override; 446 456 447 457 /// looks up the members of this union named "name" and places them into "foundDecls"
Note: See TracChangeset
for help on using the changeset viewer.