- File:
-
- 1 edited
-
src/ResolvExpr/AlternativeFinder.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r432ce7a r99d4584 29 29 #include "AlternativeFinder.h" 30 30 #include "AST/Expr.hpp" 31 #include "AST/SymbolTable.hpp"32 31 #include "AST/Type.hpp" 33 32 #include "Common/SemanticError.h" // for SemanticError … … 116 115 /// Finds matching alternatives for a function, given a set of arguments 117 116 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 ); 119 118 /// Sets up parameter inference for an output alternative 120 119 template< typename OutputIterator > … … 267 266 SemanticError( expr, "No reasonable alternatives for expression " ); 268 267 } 269 if ( mode. satisfyAssns || mode.prune ) {268 if ( mode.resolveAssns || mode.prune ) { 270 269 // trim candidates just to those where the assertions resolve 271 270 // - necessary pre-requisite to pruning … … 593 592 594 593 /// 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 { 596 595 return args[nextArg-1][explAlt]; 597 596 } … … 617 616 /// Instantiates an argument to match a formal, returns false if no results left 618 617 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, 620 619 const SymTab::Indexer& indexer, unsigned nTuples = 0 ) { 621 620 if ( TupleType * tupleType = dynamic_cast<TupleType*>( formalType ) ) { … … 889 888 template<typename OutputIterator> 890 889 void AlternativeFinder::Finder::makeFunctionAlternatives( const Alternative &func, 891 FunctionType *funcType, const ExplodedArgs _old&args, OutputIterator out ) {890 FunctionType *funcType, const ExplodedArgs &args, OutputIterator out ) { 892 891 OpenVarSet funcOpenVars; 893 892 AssertionSet funcNeed, funcHave; … … 1021 1020 1022 1021 // pre-explode arguments 1023 ExplodedArgs _oldargExpansions;1022 ExplodedArgs argExpansions; 1024 1023 argExpansions.reserve( argAlternatives.size() ); 1025 1024
Note:
See TracChangeset
for help on using the changeset viewer.