Changeset fa761c2


Ignore:
Timestamp:
Nov 1, 2023, 10:40:54 AM (14 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
be3f163
Parents:
6e7ed0aa
Message:

Changed some new uses of UniqueId? to the ast version. Changed where some debugging variables are stored.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r6e7ed0aa rfa761c2  
    5858#include "Validate/FindSpecialDecls.h" // for dtorStmt, dtorStructDestroy
    5959
    60 bool ctordtorp = false; // print all debug
    61 bool ctorp = false; // print ctor debug
    62 bool cpctorp = false; // print copy ctor debug
    63 bool dtorp = false; // print dtor debug
     60extern bool ctordtorp; // print all debug
     61extern bool ctorp; // print ctor debug
     62extern bool cpctorp; // print copy ctor debug
     63extern bool dtorp; // print dtor debug
    6464#define PRINT( text ) if ( ctordtorp ) { text }
    6565#define CP_CTOR_PRINT( text ) if ( ctordtorp || cpctorp ) { text }
  • src/InitTweak/FixInitNew.cpp

    r6e7ed0aa rfa761c2  
    3333#include "SymTab/GenImplicitCall.hpp"  // for genImplicitCall
    3434
    35 extern bool ctordtorp; // print all debug
    36 extern bool ctorp; // print ctor debug
    37 extern bool cpctorp; // print copy ctor debug
    38 extern bool dtorp; // print dtor debug
     35bool ctordtorp = false; // print all debug
     36bool ctorp = false; // print ctor debug
     37bool cpctorp = false; // print copy ctor debug
     38bool dtorp = false; // print dtor debug
    3939#define PRINT( text ) if ( ctordtorp ) { text }
    4040#define CP_CTOR_PRINT( text ) if ( ctordtorp || cpctorp ) { text }
  • src/ResolvExpr/CandidateFinder.cpp

    r6e7ed0aa rfa761c2  
    5757
    5858/// Unique identifier for matching expression resolutions to their requesting expression
    59 UniqueId globalResnSlot = 0;
     59ast::UniqueId globalResnSlot = 0;
    6060
    6161namespace {
     
    686686        void Finder::inferParameters( CandidateRef & newCand, CandidateList & out ) {
    687687                // Set need bindings for any unbound assertions
    688                 UniqueId crntResnSlot = 0; // matching ID for this expression's assertions
     688                ast::UniqueId crntResnSlot = 0; // matching ID for this expression's assertions
    689689                for ( auto & assn : newCand->need ) {
    690690                        // skip already-matched assertions
  • src/ResolvExpr/SatisfyAssertions.cpp

    r6e7ed0aa rfa761c2  
    5151
    5252// in CandidateFinder.cpp; unique ID for assertion satisfaction
    53 extern UniqueId globalResnSlot;
     53extern ast::UniqueId globalResnSlot;
    5454
    5555namespace {
     
    298298                        if ( !expr->inferred.hasSlots() ) return expr;
    299299                        // if ( expr->inferred.mode != ast::Expr::InferUnion::Slots ) return expr;
    300                         std::vector<UniqueId> missingSlots;
     300                        std::vector<ast::UniqueId> missingSlots;
    301301                        // find inferred parameters for resolution slots
    302302                        ast::InferredParams * newInferred = new ast::InferredParams();
    303                         for ( UniqueId slot : expr->inferred.resnSlots() ) {
     303                        for ( ast::UniqueId slot : expr->inferred.resnSlots() ) {
    304304                                // fail if no matching assertions found
    305305                                auto it = inferred.find( slot );
Note: See TracChangeset for help on using the changeset viewer.