reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   66 DEPENDENT_TYPE(TemplateTypeParm, Type)

References

include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  369   FoldingSetTrait<T>::Profile(X, TempID);
  375   FoldingSetTrait<T>::Profile(X, TempID);
  410   using iterator = FoldingSetIterator<T>;
  415   using const_iterator = FoldingSetIterator<const T>;
  420   using bucket_iterator = FoldingSetBucketIterator<T>;
  432   bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
  437   T *GetOrInsertNode(T *N) {
  437   T *GetOrInsertNode(T *N) {
  444   T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
  451   void InsertNode(T *N, void *InsertPos) {
  457   void InsertNode(T *N) {
  473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
  474   using Super = FoldingSetImpl<T>;
  480     T *TN = static_cast<T *>(N);
  481     FoldingSetTrait<T>::Profile(*TN, ID);
  488     T *TN = static_cast<T *>(N);
  489     return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
  495     T *TN = static_cast<T *>(N);
  496     return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/AST/ASTContext.h
  204   mutable llvm::FoldingSet<TemplateTypeParmType> TemplateTypeParmTypes;
 1432   QualType getSubstTemplateTypeParmType(const TemplateTypeParmType *Replaced,
 1435                                           const TemplateTypeParmType *Replaced,
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  479     : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/CanonicalType.h
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   87   const T *getTypePtrOrNull() const {
  126   CanProxy<T> operator->() const;
  157   CanQual<T> getUnqualifiedType() const;
  167   bool isMoreQualifiedThan(CanQual<T> Other) const {
  173   bool isAtLeastAsQualifiedAs(CanQual<T> Other) const {
  185   static CanQual<T> getFromOpaquePtr(void *Ptr);
  192   static CanQual<T> CreateUnsafe(QualType Other);
  241   CanQual<T> Stored;
  245   const T *getTypePtr() const { return Stored.getTypePtr(); }
  254   operator const T*() const { return this->Stored.getTypePtrOrNull(); }
  321   const CanProxyAdaptor<T> *operator->() const {
  568   : public CanProxyBase<TemplateTypeParmType> {
tools/clang/include/clang/AST/JSONNodeDumper.h
  213   void VisitTemplateTypeParmType(const TemplateTypeParmType *TTPT);
tools/clang/include/clang/AST/TextNodeDumper.h
  290   void VisitTemplateTypeParmType(const TemplateTypeParmType *T);
tools/clang/include/clang/AST/Type.h
 4635     return Can->castAs<TemplateTypeParmType>()->CanTTPTInfo;
 4681   const TemplateTypeParmType *Replaced;
 4683   SubstTemplateTypeParmType(const TemplateTypeParmType *Param, QualType Canon)
 4692   const TemplateTypeParmType *getReplacedParameter() const {
 4710                       const TemplateTypeParmType *Replaced,
 4737   const TemplateTypeParmType *Replaced;
 4743   SubstTemplateTypeParmPackType(const TemplateTypeParmType *Param,
 4751   const TemplateTypeParmType *getReplacedParameter() const {
 4766                       const TemplateTypeParmType *Replaced,
 6614   return isa<TemplateTypeParmType>(CanonicalType);
tools/clang/include/clang/AST/TypeLoc.h
  486     return TypeClass::classof(Ty);
  498   const TypeClass *getTypePtr() const {
  499     return cast<TypeClass>(Base::getTypePtr());
  737                                      TemplateTypeParmType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5940 extern const AstTypeMatcher<TemplateTypeParmType> templateTypeParmType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  751 class HasDeclarationMatcher : public WrapperMatcherInterface<T> {
  759   bool matches(const T &Node, ASTMatchFinder *Finder,
  795     if (const auto *S = dyn_cast<TemplateTypeParmType>(EffectiveType)) {
  795     if (const auto *S = dyn_cast<TemplateTypeParmType>(EffectiveType)) {
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1119              TemplateSpecializationType, TemplateTypeParmType, TypedefType,
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Sema/Sema.h
  229 typedef std::pair<llvm::PointerUnion<const TemplateTypeParmType*, NamedDecl*>,
tools/clang/include/clang/Sema/SemaInternal.h
   79   if (const auto *TTP = UPP.first.dyn_cast<const TemplateTypeParmType *>())
   79   if (const auto *TTP = UPP.first.dyn_cast<const TemplateTypeParmType *>())
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
   90     if (const auto *TemplateTypeParm =
   91             dyn_cast<TemplateTypeParmType>(Loc.getType())) {
tools/clang/lib/AST/ASTContext.cpp
 4062 ASTContext::getSubstTemplateTypeParmType(const TemplateTypeParmType *Parm,
 4085                                           const TemplateTypeParmType *Parm,
 4104     Canon = getSubstTemplateTypeParmPackType(cast<TemplateTypeParmType>(Canon),
 4124   TemplateTypeParmType::Profile(ID, Depth, Index, ParameterPack, TTPDecl);
 4126   TemplateTypeParmType *TypeParm
 4134     TypeParm = new (*this, TypeAlignment) TemplateTypeParmType(TTPDecl, Canon);
 4136     TemplateTypeParmType *TypeCheck
 4142       TemplateTypeParmType(Depth, Index, ParameterPack);
tools/clang/lib/AST/ASTImporter.cpp
  341     ExpectedType VisitTemplateTypeParmType(const TemplateTypeParmType *T);
 1374     const TemplateTypeParmType *T) {
 1388   const TemplateTypeParmType *Replaced =
 1389       cast<TemplateTypeParmType>((*ReplacedOrErr).getTypePtr());
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  758     const auto *Parm1 = cast<TemplateTypeParmType>(T1);
  758     const auto *Parm1 = cast<TemplateTypeParmType>(T1);
  759     const auto *Parm2 = cast<TemplateTypeParmType>(T2);
  759     const auto *Parm2 = cast<TemplateTypeParmType>(T2);
tools/clang/lib/AST/DeclPrinter.cpp
 1095         if (auto T = A.getAsType()->getAs<TemplateTypeParmType>()) {
tools/clang/lib/AST/DeclTemplate.cpp
  549   return getTypeForDecl()->castAs<TemplateTypeParmType>()->getDepth();
  553   return getTypeForDecl()->castAs<TemplateTypeParmType>()->getIndex();
  557   return getTypeForDecl()->castAs<TemplateTypeParmType>()->isParameterPack();
tools/clang/lib/AST/ItaniumMangle.cpp
 3001 void CXXNameMangler::mangleType(const TemplateTypeParmType *T) {
tools/clang/lib/AST/JSONNodeDumper.cpp
  624     const TemplateTypeParmType *TTPT) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2578 void MicrosoftCXXNameMangler::mangleType(const TemplateTypeParmType *T,
tools/clang/lib/AST/ODRHash.cpp
 1013   void VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
tools/clang/lib/AST/TextNodeDumper.cpp
 1189 void TextNodeDumper::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
tools/clang/lib/AST/Type.cpp
 3388 SubstTemplateTypeParmPackType(const TemplateTypeParmType *Param,
 3405                                            const TemplateTypeParmType *Replaced,
tools/clang/lib/AST/TypePrinter.cpp
 1235 void TypePrinter::printTemplateTypeParmBefore(const TemplateTypeParmType *T,
 1254 void TypePrinter::printTemplateTypeParmAfter(const TemplateTypeParmType *T,
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  835 const AstTypeMatcher<TemplateTypeParmType> templateTypeParmType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
  418           RefType->getPointeeType()->getAs<TemplateTypeParmType>()) {
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Index/USRGeneration.cpp
  840     if (const TemplateTypeParmType *TTP = T->getAs<TemplateTypeParmType>()) {
  840     if (const TemplateTypeParmType *TTP = T->getAs<TemplateTypeParmType>()) {
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  739     } else if (isa<TemplateTypeParmType>(T)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
14000       const TemplateTypeParmType *TArgs =
14001           PmArgs->getType()->getAs<TemplateTypeParmType>();
tools/clang/lib/Sema/SemaTemplate.cpp
 2512   bool VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
 3660     const TemplateTypeParmType *TPT =
 3661         Arg.getAsType()->getAs<TemplateTypeParmType>();
 5625                                                  const TemplateTypeParmType*) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1185     auto *TypeParm = ParamRef->getPointeeType()->getAs<TemplateTypeParmType>();
 1330   if (const TemplateTypeParmType *TemplateTypeParm
 1331         = Param->getAs<TemplateTypeParmType>()) {
 5471     const TemplateTypeParmType *TTP = cast<TemplateTypeParmType>(T);
 5471     const TemplateTypeParmType *TTP = cast<TemplateTypeParmType>(T);
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1095     const TemplateTypeParmType *TTP
 1096       = cast<TemplateTypeParmType>(getSema().Context.getTypeDeclType(TTPD));
 1524   const TemplateTypeParmType *T = TL.getTypePtr();
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
   55     void addUnexpanded(const TemplateTypeParmType *T,
   84     bool VisitTemplateTypeParmType(TemplateTypeParmType *T) {
  305         if (auto *TTPT = Pack.first.dyn_cast<const TemplateTypeParmType *>()) {
  358     if (const TemplateTypeParmType *TTP
  359           = Unexpanded[I].first.dyn_cast<const TemplateTypeParmType *>())
  665     if (const TemplateTypeParmType *TTP
  666         = i->first.dyn_cast<const TemplateTypeParmType *>()) {
  794     if (const TemplateTypeParmType *TTP
  795           = Unexpanded[I].first.dyn_cast<const TemplateTypeParmType *>()) {
tools/clang/lib/Sema/TreeTransform.h
 5876   return TransformTypeSpecType(TLB, TL);
 5876   return TransformTypeSpecType(TLB, TL);
tools/clang/lib/Serialization/ASTReader.cpp
 6731         cast<TemplateTypeParmType>(Parm),
 6740                                                cast<TemplateTypeParmType>(Parm),
tools/clang/lib/Serialization/ASTWriter.cpp
  477 ASTTypeWriter::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
tools/clang/tools/extra/clangd/FindTarget.cpp
  286       void VisitTemplateTypeParmType(const TemplateTypeParmType *TTPT) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
   96   if (auto *TD = dyn_cast<TemplateTypeParmType>(TP))
tools/clang/tools/libclang/CXCursor.cpp
 1143   if (const TemplateTypeParmType *TemplP = Ty->getAs<TemplateTypeParmType>())
 1143   if (const TemplateTypeParmType *TemplP = Ty->getAs<TemplateTypeParmType>())
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp
   69   bool VisitTemplateTypeParmType(TemplateTypeParmType *T) {
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };