Changeset 3906301 for src/SynTree


Ignore:
Timestamp:
Aug 29, 2016, 5:58:17 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
fa463f1
Parents:
486341f
git-author:
Rob Schluntz <rschlunt@…> (08/25/16 11:09:18)
git-committer:
Rob Schluntz <rschlunt@…> (08/29/16 17:58:17)
Message:

change constructor warnings into errors and update the test output

Location:
src/SynTree
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.cc

    r486341f r3906301  
    5656}
    5757
    58 std::ostream & operator<<( std::ostream & out, Declaration * decl ) {
     58std::ostream & operator<<( std::ostream & out, const Declaration * decl ) {
    5959        decl->print( out );
    6060        return out;
  • src/SynTree/Declaration.h

    r486341f r3906301  
    279279};
    280280
    281 std::ostream & operator<<( std::ostream & out, Declaration * decl );
     281std::ostream & operator<<( std::ostream & out, const Declaration * decl );
    282282
    283283#endif // DECLARATION_H
  • src/SynTree/Expression.cc

    r486341f r3906301  
    541541}
    542542
    543 std::ostream & operator<<( std::ostream & out, Expression * expr ) {
     543std::ostream & operator<<( std::ostream & out, const Expression * expr ) {
    544544        expr->print( out );
    545545        return out;
  • src/SynTree/Expression.h

    r486341f r3906301  
    653653};
    654654
    655 std::ostream & operator<<( std::ostream & out, Expression * expr );
     655std::ostream & operator<<( std::ostream & out, const Expression * expr );
    656656
    657657#endif // EXPRESSION_H
  • src/SynTree/Statement.cc

    r486341f r3906301  
    387387}
    388388
    389 std::ostream & operator<<( std::ostream & out, Statement * statement ) {
     389std::ostream & operator<<( std::ostream & out, const Statement * statement ) {
    390390        statement->print( out );
    391391        return out;
  • src/SynTree/Statement.h

    r486341f r3906301  
    395395
    396396
    397 std::ostream & operator<<( std::ostream & out, Statement * statement );
     397std::ostream & operator<<( std::ostream & out, const Statement * statement );
    398398
    399399#endif // STATEMENT_H
  • src/SynTree/Type.cc

    r486341f r3906301  
    8484}
    8585
    86 std::ostream & operator<<( std::ostream & out, Type * type ) {
     86std::ostream & operator<<( std::ostream & out, const Type * type ) {
    8787        type->print( out );
    8888        return out;
  • src/SynTree/Type.h

    r486341f r3906301  
    480480}
    481481
    482 std::ostream & operator<<( std::ostream & out, Type * type );
     482std::ostream & operator<<( std::ostream & out, const Type * type );
    483483
    484484#endif // TYPE_H
Note: See TracChangeset for help on using the changeset viewer.