Changeset 6ac5223 for src/GenPoly/GenPoly.h
- Timestamp:
- Aug 17, 2017, 3:42:21 PM (8 years ago)
- 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:
- e50e9ff
- Parents:
- 97e3296 (diff), 21f0aa8 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
r97e3296 r6ac5223 16 16 #pragma once 17 17 18 #include <string> 19 #include <iostream> 20 #include <utility> 18 #include <iostream> // for ostream 19 #include <string> // for string, allocator, operator+, basic... 21 20 22 #include "ErasableScopedMap.h" 23 24 #include "SymTab/Mangler.h" 25 26 #include "SynTree/Declaration.h" 27 #include "SynTree/Type.h" 28 #include "SynTree/TypeSubstitution.h" 21 #include "ErasableScopedMap.h" // for ErasableScopedMap 22 #include "SymTab/Mangler.h" // for Mangler 23 #include "SynTree/Declaration.h" // for TypeDecl::Data, AggregateDecl, Type... 24 #include "SynTree/SynTree.h" // for Visitor Nodes 29 25 30 26 namespace GenPoly { … … 66 62 Type *hasPolyBase( Type *type, const TyVarMap &tyVars, int *levels = 0, const TypeSubstitution *env = 0 ); 67 63 68 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic or a generic type with at least one 64 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic or a generic type with at least one 69 65 /// polymorphic parameter; will look up substitution in env if provided. 70 66 bool includesPolyType( Type *type, const TypeSubstitution *env = 0 ); 71 67 72 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic in tyVars, or a generic type with 68 /// true iff this type or some base of this type after dereferencing pointers is either polymorphic in tyVars, or a generic type with 73 69 /// at least one polymorphic parameter in tyVars; will look up substitution in env if provided. 74 70 bool includesPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 );
Note:
See TracChangeset
for help on using the changeset viewer.