- Timestamp:
- Apr 22, 2024, 10:00:02 AM (8 months ago)
- Branches:
- master
- Children:
- 15215f02
- Parents:
- ba97ebf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rba97ebf rd7c0ad5 113 113 static auto read( node_type const * node, Args&&... args ) { 114 114 Pass<core_t> visitor( std::forward<Args>( args )... ); 115 auto const * temp = node->accept( visitor );116 assert( temp == node );117 return visitor.get_result();118 }119 120 // Versions of the above for older compilers.121 template< typename... Args >122 static void run( TranslationUnit & decls ) {123 Pass<core_t> visitor;124 accept_all( decls, visitor );125 }126 127 template< typename node_type, typename... Args >128 static auto read( node_type const * node ) {129 Pass<core_t> visitor;130 115 auto const * temp = node->accept( visitor ); 131 116 assert( temp == node );
Note: See TracChangeset
for help on using the changeset viewer.