Ignore:
Timestamp:
Nov 22, 2017, 3:43:50 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5fe35d6
Parents:
7e4c4f4 (diff), c2c6177 (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' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.h

    r7e4c4f4 r452747a  
    3131
    3232namespace ResolvExpr {
     33        struct ArgPack;
     34
    3335        class AlternativeFinder : public Visitor {
    3436          public:
     
    3638
    3739                AlternativeFinder( const AlternativeFinder& o )
    38                         : indexer(o.indexer), alternatives(o.alternatives), env(o.env), 
     40                        : indexer(o.indexer), alternatives(o.alternatives), env(o.env),
    3941                          targetType(o.targetType) {}
    40                
     42
    4143                AlternativeFinder( AlternativeFinder&& o )
    42                         : indexer(o.indexer), alternatives(std::move(o.alternatives)), env(o.env), 
     44                        : indexer(o.indexer), alternatives(std::move(o.alternatives)), env(o.env),
    4345                          targetType(o.targetType) {}
    44                
     46
    4547                AlternativeFinder& operator= ( const AlternativeFinder& o ) {
    4648                        if (&o == this) return *this;
    47                        
     49
    4850                        // horrific nasty hack to rebind references...
    4951                        alternatives.~AltList();
     
    5456                AlternativeFinder& operator= ( AlternativeFinder&& o ) {
    5557                        if (&o == this) return *this;
    56                        
     58
    5759                        // horrific nasty hack to rebind references...
    5860                        alternatives.~AltList();
     
    126128                /// Adds alternatives for offsetof expressions, given the base type and name of the member
    127129                template< typename StructOrUnionType > void addOffsetof( StructOrUnionType *aggInst, const std::string &name );
     130                /// Takes a final result and checks if its assertions can be satisfied
     131                template<typename OutputIterator>
     132                void validateFunctionAlternative( const Alternative &func, ArgPack& result, const std::vector<ArgPack>& results, OutputIterator out );
     133                /// Finds matching alternatives for a function, given a set of arguments
    128134                template<typename OutputIterator>
    129135                void makeFunctionAlternatives( const Alternative &func, FunctionType *funcType, const std::vector< AlternativeFinder >& args, OutputIterator out );
     136                /// Checks if assertion parameters match for a new alternative
    130137                template< typename OutputIterator >
    131138                void inferParameters( const AssertionSet &need, AssertionSet &have, const Alternative &newAlt, OpenVarSet &openVars, OutputIterator out );
Note: See TracChangeset for help on using the changeset viewer.