Ignore:
Timestamp:
Oct 26, 2021, 1:32:59 PM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
15885de9, 1ed9cb63
Parents:
148ba7d
Message:

Added ast::WithConstTranslationUnit? to give access to the surrounding TranslationUnit?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    r148ba7d rc600df1  
    300300        struct HoistArrayDimension_NoResolve_New final :
    301301                        public ast::WithDeclsToAdd<>, public ast::WithShortCircuiting,
    302                         public ast::WithGuards,
     302                        public ast::WithGuards, public ast::WithConstTranslationUnit,
    303303                        public ast::WithVisitorRef<HoistArrayDimension_NoResolve_New> {
    304304                void previsit( const ast::ObjectDecl * decl );
     
    342342                        }
    343343
    344                         ast::ptr<ast::Type> dimType = ast::sizeType;
     344                        ast::ptr<ast::Type> dimType = transUnit().global.sizeType;
    345345                        assert( dimType );
    346346                        add_qualifiers( dimType, ast::CV::Qualifiers( ast::CV::Const ) );
Note: See TracChangeset for help on using the changeset viewer.