Changeset afcb0a3
- Timestamp:
- Jun 28, 2018, 3:27:02 PM (6 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:
- 69918cea
- Parents:
- 48ed81c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r48ed81c rafcb0a3 120 120 121 121 /// Associates forward declarations of aggregates with their definitions 122 struct LinkReferenceToTypes final : public WithIndexer, public WithGuards {122 struct LinkReferenceToTypes final : public WithIndexer, public WithGuards, public WithVisitorRef<LinkReferenceToTypes>, public WithShortCircuiting { 123 123 LinkReferenceToTypes( const Indexer *indexer ); 124 124 void postvisit( TypeInstType *typeInst ); … … 128 128 void postvisit( UnionInstType *unionInst ); 129 129 void postvisit( TraitInstType *traitInst ); 130 void previsit( QualifiedType * qualType ); 131 void postvisit( QualifiedType * qualType ); 130 132 131 133 void postvisit( EnumDecl *enumDecl ); … … 488 490 } // if 489 491 checkGenericParameters( unionInst ); 492 } 493 494 void LinkReferenceToTypes::previsit( QualifiedType * ) { 495 visit_children = false; 496 } 497 498 void LinkReferenceToTypes::postvisit( QualifiedType * qualType ) { 499 // linking only makes sense for the 'oldest ancestor' of the qualified type 500 qualType->parent->accept( *visitor ); 490 501 } 491 502
Note: See TracChangeset
for help on using the changeset viewer.