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

Derived Classes

tools/clang/include/clang/AST/Type.h
 4348 class DependentDecltypeType : public DecltypeType, public llvm::FoldingSetNode {

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   31 NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Decltype, Type)

References

include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*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;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  312   void VisitDecltypeType(const DecltypeType *T) {
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 {
  534 struct CanProxyAdaptor<DecltypeType> : public CanProxyBase<DecltypeType> {
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1030                   { TRY_TO(TraverseStmt(T->getUnderlyingExpr())); })
 1273   TRY_TO(TraverseStmt(TL.getTypePtr()->getUnderlyingExpr()));
tools/clang/include/clang/AST/Type.h
 4348 class DependentDecltypeType : public DecltypeType, public llvm::FoldingSetNode {
 6547   return isa<DecltypeType>(this);
 6858 template <typename T> const T *Type::getAs() const {
 6859   static_assert(!TypeIsArrayType<T>::value,
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6867   if (!isa<T>(CanonicalType))
 6872   return cast<T>(getUnqualifiedDesugaredType());
tools/clang/include/clang/AST/TypeLoc.h
  486     return TypeClass::classof(Ty);
  498   const TypeClass *getTypePtr() const {
  499     return cast<TypeClass>(Base::getTypePtr());
 1890                                                          DecltypeType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5558 extern const AstTypeMatcher<DecltypeType> decltypeType;
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>());
 1067   using head = T1;
 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>> {
 1625 class TypeTraverseMatcher : public WrapperMatcherInterface<T> {
 1632   bool matches(const T &Node, ASTMatchFinder *Finder,
 1693   template <typename OuterT> operator Matcher<OuterT>() const {
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/lib/AST/ASTContext.cpp
 4917   DecltypeType *dt;
 4936         DecltypeType(e, UnderlyingType, QualType((DecltypeType *)Canon, 0));
 4939         DecltypeType(e, UnderlyingType, getCanonicalType(UnderlyingType));
tools/clang/lib/AST/ASTImporter.cpp
  333     ExpectedType VisitDecltypeType(const DecltypeType *T);
 1284 ExpectedType ASTNodeImporter::VisitDecltypeType(const DecltypeType *T) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  727                                   cast<DecltypeType>(T1)->getUnderlyingExpr(),
  728                                   cast<DecltypeType>(T2)->getUnderlyingExpr()))
tools/clang/lib/AST/Expr.cpp
  846     else if (FT && FT->getReturnType()->getAs<DecltypeType>())
  848           ->getAs<DecltypeType>()
tools/clang/lib/AST/ItaniumMangle.cpp
 3378 void CXXNameMangler::mangleType(const DecltypeType *T) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2882 void MicrosoftCXXNameMangler::mangleType(const DecltypeType *T, Qualifiers,
tools/clang/lib/AST/ODRHash.cpp
  838   void VisitDecltypeType(const DecltypeType *T) {
tools/clang/lib/AST/TypePrinter.cpp
 1006 void TypePrinter::printDecltypeBefore(const DecltypeType *T, raw_ostream &OS) {
 1014 void TypePrinter::printDecltypeAfter(const DecltypeType *T, raw_ostream &OS) {}
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  816 const AstTypeMatcher<DecltypeType> decltypeType;
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/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2874       T = cast<DecltypeType>(T)->getUnderlyingType();
tools/clang/lib/Sema/SemaDecl.cpp
 5506   if (dyn_cast_or_null<DecltypeType>(
tools/clang/lib/Sema/SemaExpr.cpp
 4127       T = cast<DecltypeType>(Ty)->desugar();
tools/clang/lib/Sema/SemaTemplate.cpp
 5598 bool UnnamedLocalNoLinkageFinder::VisitDecltypeType(const DecltypeType*) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 5575                                  cast<DecltypeType>(T)->getUnderlyingExpr(),
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  727   const DecltypeType *DT = DI->getType()->getAs<DecltypeType>();
  727   const DecltypeType *DT = DI->getType()->getAs<DecltypeType>();
tools/clang/lib/Sema/TreeTransform.h
 5701   const DecltypeType *T = TL.getTypePtr();
 5701   const DecltypeType *T = TL.getTypePtr();
 5716   QualType Result = TL.getType();
 5719     Result = getDerived().RebuildDecltypeType(E.get(), TL.getNameLoc());
 5725   DecltypeTypeLoc NewTL = TLB.push<DecltypeTypeLoc>(Result);
 5726   NewTL.setNameLoc(TL.getNameLoc());
tools/clang/lib/Serialization/ASTWriter.cpp
  356 void ASTTypeWriter::VisitDecltypeType(const DecltypeType *T) {
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  404       F->getDeclaredReturnType()->getAs<DecltypeType>() != nullptr) {
tools/clang/tools/extra/clangd/FindTarget.cpp
  244       void VisitDecltypeType(const DecltypeType *DTT) {
tools/clang/tools/extra/clangd/XRefs.cpp
  816     } else if (auto DT = dyn_cast<DecltypeType>(D->getReturnType())) {
  841     const DecltypeType *DT = dyn_cast<DecltypeType>(TL.getTypePtr());
  841     const DecltypeType *DT = dyn_cast<DecltypeType>(TL.getTypePtr());
  845       DT = dyn_cast<DecltypeType>(DeducedType.getTypePtr());
tools/lldb/source/Symbol/ClangASTContext.cpp
 4057     return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
 5278     return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
 5449     return CompilerType(this, llvm::cast<clang::DecltypeType>(qual_type)
 6534         llvm::cast<clang::DecltypeType>(qual_type)->getUnderlyingType());
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; };