Changeset 17129659


Ignore:
Timestamp:
Mar 21, 2019, 4:28:14 PM (3 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
17c6c1c, 7a8f5246
Parents:
ca59826
Message:

Fix line numbers in tests

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Attribute.cc

    rca59826 r17129659  
    2121#include "Expression.h"      // for Expression
    2222
    23 Attribute::Attribute( const Attribute &other ) : name( other.name ) {
     23Attribute::Attribute( const Attribute &other ) : BaseSyntaxNode( other ), name( other.name ) {
    2424        cloneAll( other.parameters, parameters );
    2525}
  • src/SynTree/BaseSyntaxNode.h

    rca59826 r17129659  
    3030
    3131  BaseSyntaxNode() { ++*new_nodes; }
    32   BaseSyntaxNode( const BaseSyntaxNode& ) { ++*new_nodes; }
     32  BaseSyntaxNode( const BaseSyntaxNode& o ) : location(o.location) { ++*new_nodes; }
    3333
    3434        virtual ~BaseSyntaxNode() {}
  • src/SynTree/Constant.cc

    rca59826 r17129659  
    2525Constant::Constant( Type * type, std::string rep, double val ) : type( type ), rep( rep ), val( val ) {}
    2626
    27 Constant::Constant( const Constant &other ) : rep( other.rep ), val( other.val ) {
     27Constant::Constant( const Constant &other ) : BaseSyntaxNode( other ), rep( other.rep ), val( other.val ) {
    2828        type = other.type->clone();
    2929}
  • tests/raii/.expect/memberCtors-ERR1.txt

    rca59826 r17129659  
    1 error: in void ?{}(B &b), field a2 used before being constructed
     1raii/memberCtors.cfa:71:1 error: in void ?{}(B &b), field a2 used before being constructed
  • tests/warnings/.expect/self-assignment.txt

    rca59826 r17129659  
    1 warning: self assignment of expression: Generated Cast of:
     1warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of:
    22  Variable Expression: j: signed int
    33... to:
    44  reference to signed int
    5 warning: self assignment of expression: Generated Cast of:
     5warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of:
    66  Variable Expression: s: instance of struct S with body 1
    77... to:
    88  reference to instance of struct S with body 1
    9 warning: self assignment of expression: Generated Cast of:
     9warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of:
    1010  Member Expression, with field:
    1111    i: signed int
     
    1414... to:
    1515  reference to signed int
    16 warning: self assignment of expression: Generated Cast of:
     16warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of:
    1717  Member Expression, with field:
    1818    i: signed int
Note: See TracChangeset for help on using the changeset viewer.