Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r432ce7a r99d4584  
    2929#include "AlternativeFinder.h"
    3030#include "AST/Expr.hpp"
    31 #include "AST/SymbolTable.hpp"
    3231#include "AST/Type.hpp"
    3332#include "Common/SemanticError.h"  // for SemanticError
     
    116115                /// Finds matching alternatives for a function, given a set of arguments
    117116                template<typename OutputIterator>
    118                 void makeFunctionAlternatives( const Alternative &func, FunctionType *funcType, const ExplodedArgs_old& args, OutputIterator out );
     117                void makeFunctionAlternatives( const Alternative &func, FunctionType *funcType, const ExplodedArgs& args, OutputIterator out );
    119118                /// Sets up parameter inference for an output alternative
    120119                template< typename OutputIterator >
     
    267266                        SemanticError( expr, "No reasonable alternatives for expression " );
    268267                }
    269                 if ( mode.satisfyAssns || mode.prune ) {
     268                if ( mode.resolveAssns || mode.prune ) {
    270269                        // trim candidates just to those where the assertions resolve
    271270                        // - necessary pre-requisite to pruning
     
    593592
    594593                /// Gets the list of exploded alternatives for this pack
    595                 const ExplodedActual& getExpl( const ExplodedArgs_old& args ) const {
     594                const ExplodedActual& getExpl( const ExplodedArgs& args ) const {
    596595                        return args[nextArg-1][explAlt];
    597596                }
     
    617616        /// Instantiates an argument to match a formal, returns false if no results left
    618617        bool instantiateArgument( Type* formalType, Initializer* initializer,
    619                         const ExplodedArgs_old& args, std::vector<ArgPack>& results, std::size_t& genStart,
     618                        const ExplodedArgs& args, std::vector<ArgPack>& results, std::size_t& genStart,
    620619                        const SymTab::Indexer& indexer, unsigned nTuples = 0 ) {
    621620                if ( TupleType * tupleType = dynamic_cast<TupleType*>( formalType ) ) {
     
    889888        template<typename OutputIterator>
    890889        void AlternativeFinder::Finder::makeFunctionAlternatives( const Alternative &func,
    891                         FunctionType *funcType, const ExplodedArgs_old &args, OutputIterator out ) {
     890                        FunctionType *funcType, const ExplodedArgs &args, OutputIterator out ) {
    892891                OpenVarSet funcOpenVars;
    893892                AssertionSet funcNeed, funcHave;
     
    10211020
    10221021                // pre-explode arguments
    1023                 ExplodedArgs_old argExpansions;
     1022                ExplodedArgs argExpansions;
    10241023                argExpansions.reserve( argAlternatives.size() );
    10251024
Note: See TracChangeset for help on using the changeset viewer.