Changeset f77f12e2
- Timestamp:
- Apr 11, 2016, 5:59:36 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 7a69460
- Parents:
- f326f99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rf326f99 rf77f12e2 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Mar 31 14:00:12201612 // Last Modified On : Mon Apr 11 17:49:38 2016 13 13 // Update Count : 200 14 14 // … … 56 56 57 57 static void parse( FILE * input, LinkageSpec::Type t, bool shouldExit = false ); 58 static void dump( std::list< Declaration * > & translationUnit );58 static void dump( std::list< Declaration * > & translationUnit, std::ostream & out = std::cout ); 59 59 60 60 bool … … 308 308 } catch ( SemanticError &e ) { 309 309 if ( errorp ) { 310 dump( translationUnit ); 310 std::cerr << "---AST at error:---" << std::endl; 311 dump( translationUnit, std::cerr ); 312 std::cerr << std::endl << "---End of AST, begin error message:---\n" << std::endl; 311 313 } 312 314 e.print( std::cerr ); … … 348 350 } 349 351 350 static void dump( std::list< Declaration * > & translationUnit ) {352 static void dump( std::list< Declaration * > & translationUnit, std::ostream & out ) { 351 353 std::list< Declaration * > decls; 352 354 if ( noprotop ) { … … 357 359 } 358 360 359 printAll( decls, std::cout );361 printAll( decls, out ); 360 362 deleteAll( translationUnit ); 361 363 }
Note: See TracChangeset
for help on using the changeset viewer.