Ignore:
Timestamp:
Apr 12, 2024, 4:40:06 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
b1b3df5, dc58e5d
Parents:
90320ac
Message:

Further Pass template clean-up, reimplementing the translation unit getter with the standard tools. The only time we needed a mutable TranslationUnit/TranslationGlobal? it was implemented manually anyways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r90320ac r7a36848  
    406406template< typename core_t >
    407407inline void ast::accept_all( ast::TranslationUnit & unit, ast::Pass< core_t > & visitor ) {
    408         if ( auto ptr = __pass::translation_unit::get_cptr( visitor.core, 0 ) ) {
     408        if ( auto ptr = __pass::translationUnit( visitor.core, 0 ) ) {
    409409                ValueGuard<const TranslationUnit *> guard( *ptr );
    410410                *ptr = &unit;
Note: See TracChangeset for help on using the changeset viewer.