Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/FixNames.cc

    r61efa42 rc6b4432  
    2828
    2929namespace CodeGen {
    30 
    31 namespace {
    32 
    3330/// Does work with the main function and scopeLevels.
    34 class FixNames final {
     31class FixNames_new final {
    3532        int scopeLevel = 1;
    3633
     
    4845
    4946        const ast::FunctionDecl *postvisit( const ast::FunctionDecl *functionDecl ) {
    50                 if ( isMain( functionDecl ) ) {
     47                if ( FixMain::isMain( functionDecl ) ) {
    5148                        auto mutDecl = ast::mutate( functionDecl );
    5249
     
    8380};
    8481
    85 } // namespace
    86 
    8782void fixNames( ast::TranslationUnit & translationUnit ) {
    88         ast::Pass<FixNames>::run( translationUnit );
     83        ast::Pass<FixNames_new>::run( translationUnit );
    8984}
    9085
Note: See TracChangeset for help on using the changeset viewer.