Changeset 5fda7143 for src/SynTree
- Timestamp:
- Sep 7, 2016, 9:30:25 AM (9 years ago)
- 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. - Location:
- src/SynTree
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r1f75e2d r5fda7143 56 56 } 57 57 58 std::ostream & operator<<( std::ostream & out, Declaration * decl ) {58 std::ostream & operator<<( std::ostream & out, const Declaration * decl ) { 59 59 decl->print( out ); 60 60 return out; -
src/SynTree/Declaration.h
r1f75e2d r5fda7143 279 279 }; 280 280 281 std::ostream & operator<<( std::ostream & out, Declaration * decl );281 std::ostream & operator<<( std::ostream & out, const Declaration * decl ); 282 282 283 283 #endif // DECLARATION_H -
src/SynTree/Expression.cc
r1f75e2d r5fda7143 358 358 assert( member ); 359 359 os << std::string( indent + 2, ' ' ); 360 os << (void*)member << " ";361 360 member->print( os, indent + 2 ); 362 361 os << std::endl; … … 541 540 } 542 541 543 std::ostream & operator<<( std::ostream & out, Expression * expr ) {542 std::ostream & operator<<( std::ostream & out, const Expression * expr ) { 544 543 expr->print( out ); 545 544 return out; -
src/SynTree/Expression.h
r1f75e2d r5fda7143 653 653 }; 654 654 655 std::ostream & operator<<( std::ostream & out, Expression * expr );655 std::ostream & operator<<( std::ostream & out, const Expression * expr ); 656 656 657 657 #endif // EXPRESSION_H -
src/SynTree/FunctionDecl.cc
r1f75e2d r5fda7143 21 21 #include "Attribute.h" 22 22 #include "Common/utility.h" 23 #include "InitTweak/InitTweak.h" 23 24 24 25 FunctionDecl::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 387 387 } 388 388 389 std::ostream & operator<<( std::ostream & out, Statement * statement ) {389 std::ostream & operator<<( std::ostream & out, const Statement * statement ) { 390 390 statement->print( out ); 391 391 return out; -
src/SynTree/Statement.h
r1f75e2d r5fda7143 47 47 48 48 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 ); } 49 51 50 52 virtual CompoundStmt *clone() const { return new CompoundStmt( *this ); } … … 395 397 396 398 397 std::ostream & operator<<( std::ostream & out, Statement * statement );399 std::ostream & operator<<( std::ostream & out, const Statement * statement ); 398 400 399 401 #endif // STATEMENT_H -
src/SynTree/Type.cc
r1f75e2d r5fda7143 84 84 } 85 85 86 std::ostream & operator<<( std::ostream & out, Type * type ) {86 std::ostream & operator<<( std::ostream & out, const Type * type ) { 87 87 type->print( out ); 88 88 return out; -
src/SynTree/Type.h
r1f75e2d r5fda7143 481 481 } 482 482 483 std::ostream & operator<<( std::ostream & out, Type * type );483 std::ostream & operator<<( std::ostream & out, const Type * type ); 484 484 485 485 #endif // TYPE_H
Note:
See TracChangeset
for help on using the changeset viewer.