Changeset 64ac636 for src/SynTree


Ignore:
Timestamp:
Mar 17, 2017, 1:14:07 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

fix missing line numbers in some places, including member constructor generation

Location:
src/SynTree
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.cc

    r1fbab5a r64ac636  
    3232
    3333Declaration::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 ) {
    3535}
    3636
  • src/SynTree/Expression.cc

    r1fbab5a r64ac636  
    3333Expression::Expression( Expression *_aname ) : result( 0 ), env( 0 ), argName( _aname ) {}
    3434
    35 Expression::Expression( const Expression &other ) : result( maybeClone( other.result ) ), env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ), extension( other.extension ) {
     35Expression::Expression( const Expression &other ) : BaseSyntaxNode( other ), result( maybeClone( other.result ) ), env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ), extension( other.extension ) {
    3636}
    3737
  • src/SynTree/Initializer.cc

    r1fbab5a r64ac636  
    2020
    2121Initializer::Initializer( bool maybeConstructed ) : maybeConstructed( maybeConstructed ) {}
    22 Initializer::Initializer( const Initializer & other ) : maybeConstructed( other.maybeConstructed ) {
     22Initializer::Initializer( const Initializer & other ) : BaseSyntaxNode( other ), maybeConstructed( other.maybeConstructed ) {
    2323}
    2424
  • src/SynTree/Initializer.h

    r1fbab5a r64ac636  
    112112// ConstructorInit represents an initializer that is either a constructor expression or
    113113// 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.
    114116class ConstructorInit : public Initializer {
    115117  public:
  • src/SynTree/Type.cc

    r1fbab5a r64ac636  
    4949Type::Type( const Qualifiers &tq, const std::list< Attribute * > & attributes ) : tq( tq ), attributes( attributes ) {}
    5050
    51 Type::Type( const Type &other ) : tq( other.tq ) {
     51Type::Type( const Type &other ) : BaseSyntaxNode( other ), tq( other.tq ) {
    5252        cloneAll( other.forall, forall );
    5353        cloneAll( other.attributes, attributes );
     
    7575                printAll( attributes, os, indent+4 );
    7676        } // if
    77        
     77
    7878        tq.print( os );
    7979}
Note: See TracChangeset for help on using the changeset viewer.