Changeset 5fda7143 for src/SynTree


Ignore:
Timestamp:
Sep 7, 2016, 9:30:25 AM (9 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
9f70ab57
Parents:
1f75e2d (diff), f04a8b81 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Conflicts:

src/Common/utility.h

Location:
src/SynTree
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.cc

    r1f75e2d r5fda7143  
    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

    r1f75e2d r5fda7143  
    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

    r1f75e2d r5fda7143  
    358358        assert( member );
    359359        os << std::string( indent + 2, ' ' );
    360         os << (void*)member << " ";
    361360        member->print( os, indent + 2 );
    362361        os << std::endl;
     
    541540}
    542541
    543 std::ostream & operator<<( std::ostream & out, Expression * expr ) {
     542std::ostream & operator<<( std::ostream & out, const Expression * expr ) {
    544543        expr->print( out );
    545544        return out;
  • src/SynTree/Expression.h

    r1f75e2d r5fda7143  
    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/FunctionDecl.cc

    r1f75e2d r5fda7143  
    2121#include "Attribute.h"
    2222#include "Common/utility.h"
     23#include "InitTweak/InitTweak.h"
    2324
    2425FunctionDecl::FunctionDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, FunctionType *type, CompoundStmt *statements, bool isInline, bool isNoreturn, std::list< Attribute * > attributes )
  • src/SynTree/Statement.cc

    r1f75e2d r5fda7143  
    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

    r1f75e2d r5fda7143  
    4747
    4848        std::list<Statement*>& get_kids() { return kids; }
     49        void push_back( Statement * stmt ) { kids.push_back( stmt ); }
     50        void push_front( Statement * stmt ) { kids.push_front( stmt ); }
    4951
    5052        virtual CompoundStmt *clone() const { return new CompoundStmt( *this ); }
     
    395397
    396398
    397 std::ostream & operator<<( std::ostream & out, Statement * statement );
     399std::ostream & operator<<( std::ostream & out, const Statement * statement );
    398400
    399401#endif // STATEMENT_H
  • src/SynTree/Type.cc

    r1f75e2d r5fda7143  
    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

    r1f75e2d r5fda7143  
    481481}
    482482
    483 std::ostream & operator<<( std::ostream & out, Type * type );
     483std::ostream & operator<<( std::ostream & out, const Type * type );
    484484
    485485#endif // TYPE_H
Note: See TracChangeset for help on using the changeset viewer.