Ignore:
Timestamp:
Sep 21, 2022, 11:02:15 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
95dab9e
Parents:
428adbc (diff), 0bd46fd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into pthread-emulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/Autogen.cpp

    r428adbc r7f6a7c9  
    1010// Created On       : Thu Dec  2 13:44:00 2021
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Thr Jan 27  9:29:00 2022
    13 // Update Count     : 1
     12// Last Modified On : Tue Sep 20 16:00:00 2022
     13// Update Count     : 2
    1414//
    1515
     
    2525
    2626#include "AST/Attribute.hpp"
     27#include "AST/Create.hpp"
    2728#include "AST/Decl.hpp"
    2829#include "AST/DeclReplacer.hpp"
     
    236237        if ( !enumDecl->body ) return;
    237238
     239        // if ( auto enumBaseType = enumDecl->base ) {
     240        //      if ( auto enumBaseTypeAsStructInst = dynamic_cast<const ast::StructInstType *>(enumBaseType.get()) ) {
     241        //              const ast::StructDecl * structDecl = enumBaseTypeAsStructInst->base.get();
     242        //              this->previsit( structDecl );
     243        //      }
     244        // }
     245
    238246        ast::EnumInstType enumInst( enumDecl->name );
    239247        enumInst.base = enumDecl;
     
    321329void FuncGenerator::produceForwardDecl( const ast::FunctionDecl * decl ) {
    322330        if (0 != functionNesting) return;
    323         ast::FunctionDecl * fwd = ast::deepCopy( decl );
    324         fwd->stmts = nullptr;
     331        ast::FunctionDecl * fwd =
     332                ( decl->stmts ) ? ast::asForward( decl ) : ast::deepCopy( decl ) ;
    325333        fwd->fixUniqueId();
    326334        forwards.push_back( fwd );
Note: See TracChangeset for help on using the changeset viewer.