Changeset 89c2f7c9 for src/AST/Init.hpp


Ignore:
Timestamp:
May 15, 2019, 4:13:44 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
54e41b3, 8a5530c, e0d19f8
Parents:
3648d98 (diff), 1e97287 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Init.hpp

    r3648d98 r89c2f7c9  
    3737        : ParseNode( loc ), designators( std::move(ds) ) {}
    3838
    39         virtual const Designation* accept( Visitor& v ) const override { return v.visit( this ); }
     39        const Designation* accept( Visitor& v ) const override { return v.visit( this ); }
    4040private:
    41         virtual Designation* clone() const override { return new Designation{ *this }; }
     41        Designation* clone() const override { return new Designation{ *this }; }
    4242};
    4343
     
    5252        Init( const CodeLocation& loc, ConstructFlag mc ) : ParseNode( loc ), maybeConstructed( mc ) {}
    5353
    54         virtual const Init * accept( Visitor& v ) const override = 0;
     54        const Init * accept( Visitor& v ) const override = 0;
    5555private:
    56         virtual const Init * clone() const override = 0;
     56        const Init * clone() const override = 0;
    5757};
    5858
     
    6666        : Init( loc, mc ), value( val ) {}
    6767
    68         virtual const Init * accept( Visitor & v ) const override { return v.visit( this ); }
     68        const Init * accept( Visitor & v ) const override { return v.visit( this ); }
    6969private:
    70         virtual SingleInit * clone() const override { return new SingleInit{ *this }; }
     70        SingleInit * clone() const override { return new SingleInit{ *this }; }
    7171
    7272        /// Must be copied in ALL derived classes
     
    9494        const_iterator end() const { return initializers.end(); }
    9595
    96         virtual const Init * accept( Visitor & v ) const override { return v.visit( this ); }
     96        const Init * accept( Visitor & v ) const override { return v.visit( this ); }
    9797private:
    98         virtual ListInit * clone() const override { return new ListInit{ *this }; }
     98        ListInit * clone() const override { return new ListInit{ *this }; }
    9999
    100100        /// Must be copied in ALL derived classes
     
    117117        : Init( loc, DoConstruct ), ctor( ctor ), dtor( dtor ), init( init ) {}
    118118
    119         virtual const Init * accept( Visitor & v ) const override { return v.visit( this ); }
     119        const Init * accept( Visitor & v ) const override { return v.visit( this ); }
    120120private:
    121         virtual ConstructorInit * clone() const override { return new ConstructorInit{ *this }; }
     121        ConstructorInit * clone() const override { return new ConstructorInit{ *this }; }
    122122
    123123        /// Must be copied in ALL derived classes
Note: See TracChangeset for help on using the changeset viewer.