Changeset 64ac636 for src/SynTree
- Timestamp:
- Mar 17, 2017, 1:14:07 PM (8 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:
- b2f5082
- Parents:
- 1fbab5a
- Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r1fbab5a r64ac636 32 32 33 33 Declaration::Declaration( const Declaration &other ) 34 : name( other.name ), storageClasses( other.storageClasses ), linkage( other.linkage ), uniqueId( other.uniqueId ) {34 : BaseSyntaxNode( other ), name( other.name ), storageClasses( other.storageClasses ), linkage( other.linkage ), uniqueId( other.uniqueId ) { 35 35 } 36 36 -
src/SynTree/Expression.cc
r1fbab5a r64ac636 33 33 Expression::Expression( Expression *_aname ) : result( 0 ), env( 0 ), argName( _aname ) {} 34 34 35 Expression::Expression( const Expression &other ) : result( maybeClone( other.result ) ), env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ), extension( other.extension ) {35 Expression::Expression( const Expression &other ) : BaseSyntaxNode( other ), result( maybeClone( other.result ) ), env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ), extension( other.extension ) { 36 36 } 37 37 -
src/SynTree/Initializer.cc
r1fbab5a r64ac636 20 20 21 21 Initializer::Initializer( bool maybeConstructed ) : maybeConstructed( maybeConstructed ) {} 22 Initializer::Initializer( const Initializer & other ) : maybeConstructed( other.maybeConstructed ) {22 Initializer::Initializer( const Initializer & other ) : BaseSyntaxNode( other ), maybeConstructed( other.maybeConstructed ) { 23 23 } 24 24 -
src/SynTree/Initializer.h
r1fbab5a r64ac636 112 112 // ConstructorInit represents an initializer that is either a constructor expression or 113 113 // a C-style initializer. 114 // It should not be necessary to create ConstructorInit nodes manually. Instead, set maybeConstructed 115 // to true on SingleInit or ListInit constructors if object should be constructed. 114 116 class ConstructorInit : public Initializer { 115 117 public: -
src/SynTree/Type.cc
r1fbab5a r64ac636 49 49 Type::Type( const Qualifiers &tq, const std::list< Attribute * > & attributes ) : tq( tq ), attributes( attributes ) {} 50 50 51 Type::Type( const Type &other ) : tq( other.tq ) {51 Type::Type( const Type &other ) : BaseSyntaxNode( other ), tq( other.tq ) { 52 52 cloneAll( other.forall, forall ); 53 53 cloneAll( other.attributes, attributes ); … … 75 75 printAll( attributes, os, indent+4 ); 76 76 } // if 77 77 78 78 tq.print( os ); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.