Changeset 96c04e4 for src/AST/Pass.hpp


Ignore:
Timestamp:
May 28, 2024, 11:38:25 AM (5 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
91b9e10
Parents:
66286aa
Message:

Simplified the visit children guard to use a ValueGuardPtr?. For consistency, so all three guards use the same pattern, I also updated the value guard, which is a side ways step in complexity (although less of it is under macros now).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    r66286aa r96c04e4  
    351351        };
    352352
    353         template< typename core_t>
    354         friend auto __pass::at_cleanup( core_t & core, int ) -> decltype( &core.at_cleanup );
     353        template< typename core_t >
     354        friend auto __pass::make_value_guard( core_t & core, int ) -> decltype( value_guard( core.at_cleanup ) );
    355355public:
    356356
Note: See TracChangeset for help on using the changeset viewer.