Changeset 17129659
- Timestamp:
- Mar 21, 2019, 4:28:14 PM (5 years ago)
- 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:
- 17c6c1c3, 7a8f5246
- Parents:
- ca59826
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Attribute.cc
rca59826 r17129659 21 21 #include "Expression.h" // for Expression 22 22 23 Attribute::Attribute( const Attribute &other ) : name( other.name ) {23 Attribute::Attribute( const Attribute &other ) : BaseSyntaxNode( other ), name( other.name ) { 24 24 cloneAll( other.parameters, parameters ); 25 25 } -
src/SynTree/BaseSyntaxNode.h
rca59826 r17129659 30 30 31 31 BaseSyntaxNode() { ++*new_nodes; } 32 BaseSyntaxNode( const BaseSyntaxNode& ) { ++*new_nodes; }32 BaseSyntaxNode( const BaseSyntaxNode& o ) : location(o.location) { ++*new_nodes; } 33 33 34 34 virtual ~BaseSyntaxNode() {} -
src/SynTree/Constant.cc
rca59826 r17129659 25 25 Constant::Constant( Type * type, std::string rep, double val ) : type( type ), rep( rep ), val( val ) {} 26 26 27 Constant::Constant( const Constant &other ) : rep( other.rep ), val( other.val ) {27 Constant::Constant( const Constant &other ) : BaseSyntaxNode( other ), rep( other.rep ), val( other.val ) { 28 28 type = other.type->clone(); 29 29 } -
tests/raii/.expect/memberCtors-ERR1.txt
rca59826 r17129659 1 error: in void ?{}(B &b), field a2 used before being constructed1 raii/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:1 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 2 2 Variable Expression: j: signed int 3 3 ... to: 4 4 reference to signed int 5 warning : self assignment of expression: Generated Cast of:5 warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of: 6 6 Variable Expression: s: instance of struct S with body 1 7 7 ... to: 8 8 reference to instance of struct S with body 1 9 warning : self assignment of expression: Generated Cast of:9 warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of: 10 10 Member Expression, with field: 11 11 i: signed int … … 14 14 ... to: 15 15 reference to signed int 16 warning : self assignment of expression: Generated Cast of:16 warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of: 17 17 Member Expression, with field: 18 18 i: signed int
Note: See TracChangeset
for help on using the changeset viewer.