Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r62e5546 rd1969a6  
    9494
    9595        /// Associates forward declarations of aggregates with their definitions
    96         class Pass2 final : public Indexer {
     96        class Pass2 : public Indexer {
    9797                typedef Indexer Parent;
    9898          public:
    9999                Pass2( bool doDebug, const Indexer *indexer );
    100100          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 );
    108107
    109108                const Indexer *indexer;
     
    183182        };
    184183
    185         class CompoundLiteral final : public GenPoly::DeclMutator {
     184        class CompoundLiteral : public GenPoly::DeclMutator {
    186185                DeclarationNode::StorageClass storageclass = DeclarationNode::NoStorageClass;
    187186
    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 );
    191189        };
    192190
     
    654652        void EliminateTypedef::addImplicitTypedef( AggDecl * aggDecl ) {
    655653                if ( typedefNames.count( aggDecl->get_name() ) == 0 ) {
    656                         Type *type = nullptr;
     654                        Type *type;
    657655                        if ( StructDecl * newDeclStructDecl = dynamic_cast< StructDecl * >( aggDecl ) ) {
    658656                                type = new StructInstType( Type::Qualifiers(), newDeclStructDecl->get_name() );
Note: See TracChangeset for help on using the changeset viewer.