Changes in src/GenPoly/FindFunction.h [c6b4432:c97b448]
- File:
-
- 1 edited
-
src/GenPoly/FindFunction.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/FindFunction.h
rc6b4432 rc97b448 16 16 #pragma once 17 17 18 #include <list> // for list 19 18 20 #include "GenPoly.h" // for TyVarMap 19 21 22 class FunctionType; 23 class Type; 24 20 25 namespace GenPoly { 26 typedef bool (*FindFunctionPredicate)( FunctionType*, const TyVarMap& ); 27 28 /// recursively walk `type`, placing all functions that match `predicate` under `tyVars` into `functions` 29 void findFunction( Type *type, std::list< FunctionType const * > &functions, const TyVarMap &tyVars, FindFunctionPredicate predicate ); 30 /// like `findFunction`, but also replaces the function type with void ()(void) 31 void findAndReplaceFunction( Type *&type, std::list< FunctionType const * > &functions, const TyVarMap &tyVars, FindFunctionPredicate predicate ); 21 32 22 33 typedef bool (*FindFunctionPred)( const ast::FunctionType *, const TypeVarMap & );
Note:
See TracChangeset
for help on using the changeset viewer.