- Timestamp:
 - Nov 9, 2021, 3:57:11 PM (4 years ago)
 - Branches:
 - ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
 - Children:
 - b7fd9daf
 - Parents:
 - 36a05d7
 - Location:
 - src
 - Files:
 - 
      
- 2 added
 - 2 edited
 
- 
          
  ResolvExpr/CandidatePrinter.cpp (added)
 - 
          
  ResolvExpr/CandidatePrinter.hpp (added)
 - 
          
  ResolvExpr/module.mk (modified) (1 diff)
 - 
          
  main.cc (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/ResolvExpr/module.mk
r36a05d7 r1622af5 61 61 ResolvExpr/WidenMode.h 62 62 63 SRC += $(SRC_RESOLVEXPR) \ 64 ResolvExpr/AlternativePrinter.cc \ 65 ResolvExpr/AlternativePrinter.h \ 66 ResolvExpr/CandidatePrinter.cpp \ 67 ResolvExpr/CandidatePrinter.hpp 63 68 64 SRC += $(SRC_RESOLVEXPR) ResolvExpr/AlternativePrinter.cc ResolvExpr/AlternativePrinter.h65 69 SRCDEMANGLE += $(SRC_RESOLVEXPR)  - 
      
src/main.cc
r36a05d7 r1622af5 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Nov 8 11:42:00 202113 // Update Count : 65 612 // Last Modified On : Tue Nov 9 11:10:00 2021 13 // Update Count : 657 14 14 // 15 15 … … 65 65 #include "Parser/TypedefTable.h" // for TypedefTable 66 66 #include "ResolvExpr/AlternativePrinter.h" // for AlternativePrinter 67 #include "ResolvExpr/CandidatePrinter.hpp" // for printCandidates 67 68 #include "ResolvExpr/Resolver.h" // for resolve 68 69 #include "SymTab/Validate.h" // for validate … … 318 319 // add the assignment statement after the initialization of a type parameter 319 320 PASS( "Validate", SymTab::validate( translationUnit, symtabp ) ); 320 if ( symtabp ) {321 deleteAll( translationUnit );322 return EXIT_SUCCESS;323 } // if324 325 if ( expraltp ) {326 PassVisitor<ResolvExpr::AlternativePrinter> printer( cout );327 acceptAll( translationUnit, printer );328 return EXIT_SUCCESS;329 } // if330 331 if ( validp ) {332 dump( translationUnit );333 return EXIT_SUCCESS;334 } // if335 321 336 322 CodeTools::fillLocations( translationUnit ); … … 345 331 forceFillCodeLocations( transUnit ); 346 332 333 if ( symtabp ) { 334 return EXIT_SUCCESS; 335 } // if 336 337 if ( expraltp ) { 338 ResolvExpr::printCandidates( transUnit ); 339 return EXIT_SUCCESS; 340 } // if 341 342 if ( validp ) { 343 dump( move( transUnit ) ); 344 return EXIT_SUCCESS; 345 } // if 346 347 347 PASS( "Translate Throws", ControlStruct::translateThrows( transUnit ) ); 348 348 PASS( "Fix Labels", ControlStruct::fixLabels( transUnit ) ); … … 383 383 translationUnit = convert( move( transUnit ) ); 384 384 } else { 385 if ( symtabp ) { 386 deleteAll( translationUnit ); 387 return EXIT_SUCCESS; 388 } // if 389 390 if ( expraltp ) { 391 PassVisitor<ResolvExpr::AlternativePrinter> printer( cout ); 392 acceptAll( translationUnit, printer ); 393 return EXIT_SUCCESS; 394 } // if 395 396 if ( validp ) { 397 dump( translationUnit ); 398 return EXIT_SUCCESS; 399 } // if 400 385 401 PASS( "Translate Throws", ControlStruct::translateThrows( translationUnit ) ); 386 402 PASS( "Fix Labels", ControlStruct::fixLabels( translationUnit ) );  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.