Changeset 0b3b2ae for src/SynTree
- Timestamp:
- Jun 22, 2018, 3:43:19 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- ed34540
- Parents:
- c194661
- git-author:
- Rob Schluntz <rschlunt@…> (06/22/18 14:48:30)
- git-committer:
- Rob Schluntz <rschlunt@…> (06/22/18 15:43:19)
- Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ReferenceToType.cc
rc194661 r0b3b2ae 76 76 bool StructInstType::isComplete() const { return baseStruct ? baseStruct->has_body() : false; } 77 77 78 AggregateDecl * StructInstType::getAggr() { return baseStruct; }78 AggregateDecl * StructInstType::getAggr() const { return baseStruct; } 79 79 80 80 TypeSubstitution StructInstType::genericSubstitution() const { … … 119 119 bool UnionInstType::isComplete() const { return baseUnion ? baseUnion->has_body() : false; } 120 120 121 AggregateDecl * UnionInstType::getAggr() { return baseUnion; }121 AggregateDecl * UnionInstType::getAggr() const { return baseUnion; } 122 122 123 123 TypeSubstitution UnionInstType::genericSubstitution() const { … … 152 152 bool EnumInstType::isComplete() const { return baseEnum ? baseEnum->has_body() : false; } 153 153 154 AggregateDecl * EnumInstType::getAggr() const { return baseEnum; } 155 154 156 void EnumInstType::print( std::ostream &os, Indenter indent ) const { 155 157 using std::endl; -
src/SynTree/Type.cc
rc194661 r0b3b2ae 129 129 GlobalScopeType::GlobalScopeType() : Type( Type::Qualifiers(), {} ) {} 130 130 131 void GlobalScopeType::print( std::ostream & os, Indenter indent) const {131 void GlobalScopeType::print( std::ostream & os, Indenter ) const { 132 132 os << "Global Scope Type" << endl; 133 133 } -
src/SynTree/Type.h
rc194661 r0b3b2ae 178 178 virtual bool isComplete() const { return true; } 179 179 180 virtual AggregateDecl * getAggr() { assertf( false, "Non-aggregate type: %s", toCString( this ) ); }180 virtual AggregateDecl * getAggr() const { assertf( false, "Non-aggregate type: %s", toCString( this ) ); } 181 181 182 182 virtual TypeSubstitution genericSubstitution() const; … … 431 431 virtual bool isComplete() const override; 432 432 433 virtual AggregateDecl * getAggr() override;433 virtual AggregateDecl * getAggr() const override; 434 434 435 435 virtual TypeSubstitution genericSubstitution() const override; … … 468 468 virtual bool isComplete() const override; 469 469 470 virtual AggregateDecl * getAggr() override;470 virtual AggregateDecl * getAggr() const override; 471 471 472 472 virtual TypeSubstitution genericSubstitution() const override; … … 500 500 501 501 virtual bool isComplete() const override; 502 503 virtual AggregateDecl * getAggr() const; 502 504 503 505 virtual EnumInstType *clone() const override { return new EnumInstType( *this ); }
Note:
See TracChangeset
for help on using the changeset viewer.