- Timestamp:
- Sep 27, 2017, 5:06:34 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 6e49f18, a8555c5, ea156ae
- Parents:
- 5363fdf
- Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Attribute.h
r5363fdf rfa16264 43 43 bool empty() const { return name == ""; } 44 44 45 Attribute * clone() const { return new Attribute( *this ); }46 virtual void accept( Visitor & v ) { v.visit( this ); }47 virtual Attribute * acceptMutator( Mutator & m ) { return m.mutate( this ); }48 virtual void print( std::ostream & os, int indent = 0 ) const ;45 Attribute * clone() const override { return new Attribute( *this ); } 46 virtual void accept( Visitor & v ) override { v.visit( this ); } 47 virtual Attribute * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 48 virtual void print( std::ostream & os, int indent = 0 ) const override; 49 49 }; 50 50 -
src/SynTree/Declaration.h
r5363fdf rfa16264 61 61 62 62 void fixUniqueId( void ); 63 virtual Declaration *clone() const = 0;63 virtual Declaration *clone() const override = 0; 64 64 virtual void accept( Visitor &v ) override = 0; 65 virtual Declaration *acceptMutator( Mutator &m ) = 0;65 virtual Declaration *acceptMutator( Mutator &m ) override = 0; 66 66 virtual void print( std::ostream &os, int indent = 0 ) const override = 0; 67 67 virtual void printShort( std::ostream &os, int indent = 0 ) const = 0; -
src/SynTree/Expression.h
r5363fdf rfa16264 55 55 Expression * set_extension( bool exten ) { extension = exten; return this; } 56 56 57 virtual Expression * clone() const = 0;58 virtual void accept( Visitor & v ) = 0;59 virtual Expression * acceptMutator( Mutator & m ) = 0;60 virtual void print( std::ostream & os, int indent = 0 ) const ;57 virtual Expression * clone() const override = 0; 58 virtual void accept( Visitor & v ) override = 0; 59 virtual Expression * acceptMutator( Mutator & m ) override = 0; 60 virtual void print( std::ostream & os, int indent = 0 ) const override; 61 61 }; 62 62 -
src/SynTree/Initializer.h
r5363fdf rfa16264 37 37 std::list< Expression * > & get_designators() { return designators; } 38 38 39 virtual Designation * clone() const { return new Designation( *this ); };39 virtual Designation * clone() const override { return new Designation( *this ); }; 40 40 virtual void accept( Visitor &v ) override { v.visit( this ); } 41 virtual Designation * acceptMutator( Mutator &m ) { return m.mutate( this ); }41 virtual Designation * acceptMutator( Mutator &m ) override { return m.mutate( this ); } 42 42 virtual void print( std::ostream &os, int indent = 0 ) const override; 43 43 }; … … 54 54 bool get_maybeConstructed() { return maybeConstructed; } 55 55 56 virtual Initializer *clone() const = 0;56 virtual Initializer *clone() const override = 0; 57 57 virtual void accept( Visitor &v ) override = 0; 58 virtual Initializer *acceptMutator( Mutator &m ) = 0;58 virtual Initializer *acceptMutator( Mutator &m ) override = 0; 59 59 virtual void print( std::ostream &os, int indent = 0 ) const override = 0; 60 60 private: -
src/SynTree/Statement.h
r5363fdf rfa16264 43 43 const std::list<Label> & get_labels() const { return labels; } 44 44 45 virtual Statement *clone() const = 0;45 virtual Statement *clone() const override = 0; 46 46 virtual void accept( Visitor &v ) override = 0; 47 virtual Statement *acceptMutator( Mutator &m ) = 0;47 virtual Statement *acceptMutator( Mutator &m ) override = 0; 48 48 virtual void print( std::ostream &os, int indent = 0 ) const override; 49 49 };
Note: See TracChangeset
for help on using the changeset viewer.