Changes in src/SymTab/Validate.cc [62e5546:d1969a6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r62e5546 rd1969a6 94 94 95 95 /// Associates forward declarations of aggregates with their definitions 96 class Pass2 final: public Indexer {96 class Pass2 : public Indexer { 97 97 typedef Indexer Parent; 98 98 public: 99 99 Pass2( bool doDebug, const Indexer *indexer ); 100 100 private: 101 using Indexer::visit; 102 void visit( StructInstType *structInst ) final; 103 void visit( UnionInstType *unionInst ) final; 104 void visit( TraitInstType *contextInst ) final; 105 void visit( StructDecl *structDecl ) final; 106 void visit( UnionDecl *unionDecl ) final; 107 void visit( TypeInstType *typeInst ) final; 101 virtual void visit( StructInstType *structInst ); 102 virtual void visit( UnionInstType *unionInst ); 103 virtual void visit( TraitInstType *contextInst ); 104 virtual void visit( StructDecl *structDecl ); 105 virtual void visit( UnionDecl *unionDecl ); 106 virtual void visit( TypeInstType *typeInst ); 108 107 109 108 const Indexer *indexer; … … 183 182 }; 184 183 185 class CompoundLiteral final: public GenPoly::DeclMutator {184 class CompoundLiteral : public GenPoly::DeclMutator { 186 185 DeclarationNode::StorageClass storageclass = DeclarationNode::NoStorageClass; 187 186 188 using GenPoly::DeclMutator::mutate; 189 DeclarationWithType * mutate( ObjectDecl *objectDecl ) final; 190 Expression *mutate( CompoundLiteralExpr *compLitExpr ) final; 187 virtual DeclarationWithType * mutate( ObjectDecl *objectDecl ); 188 virtual Expression *mutate( CompoundLiteralExpr *compLitExpr ); 191 189 }; 192 190 … … 654 652 void EliminateTypedef::addImplicitTypedef( AggDecl * aggDecl ) { 655 653 if ( typedefNames.count( aggDecl->get_name() ) == 0 ) { 656 Type *type = nullptr;654 Type *type; 657 655 if ( StructDecl * newDeclStructDecl = dynamic_cast< StructDecl * >( aggDecl ) ) { 658 656 type = new StructInstType( Type::Qualifiers(), newDeclStructDecl->get_name() );
Note:
See TracChangeset
for help on using the changeset viewer.