|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Derived Classes
tools/clang/include/clang/AST/Type.h 4444 class RecordType : public TagType {
4470 class EnumType : public TagType {
Declarations
gen/tools/clang/include/clang/AST/TypeNodes.inc 64 ABSTRACT_TYPE(Tag, Type)
References
include/llvm/Support/Casting.h 57 static inline bool doit(const From &Val) {
58 return To::classof(&Val);
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
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
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
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;
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 {
548 struct CanProxyAdaptor<TagType> : public CanProxyBase<TagType> {
tools/clang/include/clang/AST/JSONNodeDumper.h 212 void VisitTagType(const TagType *TT);
tools/clang/include/clang/AST/TextNodeDumper.h 289 void VisitTagType(const TagType *T);
tools/clang/include/clang/AST/Type.h 4444 class RecordType : public TagType {
4470 class EnumType : public TagType {
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());
6923 template <typename T> const T *Type::castAs() const {
6924 static_assert(!TypeIsArrayType<T>::value,
6927 if (const auto *ty = dyn_cast<T>(this)) return ty;
6927 if (const auto *ty = dyn_cast<T>(this)) return ty;
6929 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());
705 TagType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 5837 extern const AstTypeMatcher<TagType> tagType;
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,
789 if (const auto *S = dyn_cast<TagType>(EffectiveType)) {
789 if (const auto *S = dyn_cast<TagType>(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;
1118 MemberExpr, QualType, RecordType, TagType,
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/lib/AST/ASTContext.cpp 570 if (const auto *TT = QT->getAs<TagType>())
570 if (const auto *TT = QT->getAs<TagType>())
1775 if (const auto *TT = T->getAs<TagType>())
1775 if (const auto *TT = T->getAs<TagType>())
2103 const auto *TT = cast<TagType>(T);
2103 const auto *TT = cast<TagType>(T);
tools/clang/lib/AST/ASTDiagnostic.cpp 170 if (const TagType *UTT = Underlying->getAs<TagType>())
170 if (const TagType *UTT = Underlying->getAs<TagType>())
tools/clang/lib/AST/ASTImporter.cpp 2517 if (const auto *Tag = Typedef->getUnderlyingType()->getAs<TagType>())
2517 if (const auto *Tag = Typedef->getUnderlyingType()->getAs<TagType>())
2621 if (const auto *Tag = Typedef->getUnderlyingType()->getAs<TagType>())
2621 if (const auto *Tag = Typedef->getUnderlyingType()->getAs<TagType>())
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 752 if (!IsStructurallyEquivalent(Context, cast<TagType>(T1)->getDecl(),
753 cast<TagType>(T2)->getDecl()))
tools/clang/lib/AST/Decl.cpp 4731 if (auto *TT = getTypeSourceInfo()->getType()->getAs<TagType>()) {
4747 if (auto *TT = getUnderlyingType()->getAs<TagType>()) {
tools/clang/lib/AST/DeclBase.cpp 1217 if (const auto *TagTy = dyn_cast<TagType>(Tag->getTypeForDecl())) {
1217 if (const auto *TagTy = dyn_cast<TagType>(Tag->getTypeForDecl())) {
tools/clang/lib/AST/ItaniumMangle.cpp 521 void mangleType(const TagType*);
2047 mangleSourceNameWithAbiTags(cast<TagType>(Ty)->getDecl());
2940 void CXXNameMangler::mangleType(const TagType *T) {
tools/clang/lib/AST/JSONNodeDumper.cpp 619 void JSONNodeDumper::VisitTagType(const TagType *TT) {
tools/clang/lib/AST/MicrosoftMangle.cpp 1925 if ((!IsPointer && Quals) || isa<TagType>(T) || isArtificialTagType(T)) {
2461 mangleType(cast<TagType>(T)->getDecl());
2465 mangleType(cast<TagType>(T)->getDecl());
tools/clang/lib/AST/ODRHash.cpp 996 void VisitTagType(const TagType *T) {
tools/clang/lib/AST/QualTypeNames.cpp 242 if (const TagType *TagDeclType = Type->getAs<TagType>()) {
242 if (const TagType *TagDeclType = Type->getAs<TagType>()) {
325 } else if (const auto *TagDeclType = dyn_cast<TagType>(TypePtr)) {
325 } else if (const auto *TagDeclType = dyn_cast<TagType>(TypePtr)) {
tools/clang/lib/AST/TextNodeDumper.cpp 1185 void TextNodeDumper::VisitTagType(const TagType *T) {
tools/clang/lib/AST/Type.cpp 1697 if (const auto *TT = getAs<TagType>())
1697 if (const auto *TT = getAs<TagType>())
3650 const TagDecl *Tag = cast<TagType>(T)->getDecl();
3748 return getDeclLinkageAndVisibility(cast<TagType>(T)->getDecl());
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 832 const AstTypeMatcher<TagType> tagType;
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 936 static SmallString<256> getTypeIdentifier(const TagType *Ty, CodeGenModule &CGM,
tools/clang/lib/CodeGen/CGDebugInfo.h 115 std::vector<std::pair<const TagType *, llvm::TrackingMDRef>> ReplaceMap;
tools/clang/lib/CodeGen/CodeGenTBAA.cpp 81 if (const TagType *TTy = dyn_cast<TagType>(QTy))
81 if (const TagType *TTy = dyn_cast<TagType>(QTy))
tools/clang/lib/CodeGen/CodeGenTypes.cpp 201 const TagType *TT = Ty->getAs<TagType>();
201 const TagType *TT = Ty->getAs<TagType>();
tools/clang/lib/Index/USRGeneration.cpp 823 if (const TagType *TT = T->getAs<TagType>()) {
823 if (const TagType *TT = T->getAs<TagType>()) {
tools/clang/lib/Sema/Sema.cpp 2280 if (auto TagT = dyn_cast<TagType>(QT.getCanonicalType().getTypePtr()))
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 55 if (const TagType *Tag = T->getAs<TagType>())
55 if (const TagType *Tag = T->getAs<TagType>())
152 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
152 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
858 if (!T->isDependentType() && !T->getAs<TagType>()) {
962 if (!T->isDependentType() && !T->getAs<TagType>()) {
tools/clang/lib/Sema/SemaCast.cpp 1841 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
1841 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
tools/clang/lib/Sema/SemaCodeComplete.cpp 1881 if (const TagType *TagT = dyn_cast<TagType>(T))
1881 if (const TagType *TagT = dyn_cast<TagType>(T))
tools/clang/lib/Sema/SemaDecl.cpp 188 if (auto *BaseTT = Base.getType()->getAs<TagType>())
1784 if (const TagType *TT = Ty->getAs<TagType>()) {
1784 if (const TagType *TT = Ty->getAs<TagType>()) {
15104 if (const TagType *TT = TD->getUnderlyingType()->getAs<TagType>()) {
15104 if (const TagType *TT = TD->getUnderlyingType()->getAs<TagType>()) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 7558 if (const auto *TT = TD->getUnderlyingType()->getAs<TagType>()) {
7558 if (const auto *TT = TD->getUnderlyingType()->getAs<TagType>()) {
8413 if (const auto *TT = dyn_cast<TagType>(TyPtr)) {
8413 if (const auto *TT = dyn_cast<TagType>(TyPtr)) {
tools/clang/lib/Sema/SemaExpr.cpp 8454 if (isa<TagType>(LHSType) && isa<TagType>(RHSType)) {
8454 if (isa<TagType>(LHSType) && isa<TagType>(RHSType)) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp 1116 if (const TagType *Tag = T->getAs<TagType>())
1116 if (const TagType *Tag = T->getAs<TagType>())
1155 if (const TagType *TT = T->getAs<TagType>()) {
1155 if (const TagType *TT = T->getAs<TagType>()) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 752 if (const TagType *oldTagType = D->getUnderlyingType()->getAs<TagType>()) {
752 if (const TagType *oldTagType = D->getUnderlyingType()->getAs<TagType>()) {
755 TagDecl *newTag = DI->getType()->castAs<TagType>()->getDecl();
tools/clang/lib/Sema/SemaType.cpp 1558 if (const TagType *TT = Result->getAs<TagType>())
1558 if (const TagType *TT = Result->getAs<TagType>())
7832 if (const TagType *Tag = T->getAs<TagType>()) {
7832 if (const TagType *Tag = T->getAs<TagType>()) {
8305 if (const TagType *TT = T->getAs<TagType>())
8305 if (const TagType *TT = T->getAs<TagType>())
tools/clang/lib/Sema/TreeTransform.h13343 if (!ScopeType->getType()->getAs<TagType>()) {
tools/clang/lib/Serialization/ASTReader.cpp 4827 const TagType *Tag = FileType->getAs<TagType>();
4827 const TagType *Tag = FileType->getAs<TagType>();
4848 const TagType *Tag = Jmp_bufType->getAs<TagType>();
4848 const TagType *Tag = Jmp_bufType->getAs<TagType>();
4869 const TagType *Tag = Sigjmp_bufType->getAs<TagType>();
4869 const TagType *Tag = Sigjmp_bufType->getAs<TagType>();
4905 const TagType *Tag = Ucontext_tType->getAs<TagType>();
4905 const TagType *Tag = Ucontext_tType->getAs<TagType>();
9961 if (const TagType *TagT = dyn_cast<TagType>(TD->getTypeForDecl())) {
9961 if (const TagType *TagT = dyn_cast<TagType>(TD->getTypeForDecl())) {
tools/clang/lib/Serialization/ASTWriter.cpp 176 void VisitTagType(const TagType *T);
387 void ASTTypeWriter::VisitTagType(const TagType *T) {
tools/clang/tools/extra/clangd/FindTarget.cpp 241 void VisitTagType(const TagType *TT) {
tools/clang/tools/libclang/CIndex.cpp 1346 if (const TagType *Tag = dyn_cast<TagType>(T))
1346 if (const TagType *Tag = dyn_cast<TagType>(T))
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 616 if (const TagType *Tag = baseType->getAs<TagType>())
616 if (const TagType *Tag = baseType->getAs<TagType>())
tools/clang/tools/libclang/CXCursor.cpp 1141 if (const TagType *Tag = Ty->getAs<TagType>())
1141 if (const TagType *Tag = Ty->getAs<TagType>())
tools/clang/tools/libclang/CXType.cpp 505 D = cast<TagType>(TP)->getDecl();
tools/clang/unittests/AST/ASTImporterTest.cpp 3949 auto *Fwd = cast<TagType>(FT)->getDecl();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 350 const TagType *tag_type =
351 ClangUtil::GetQualType(clang_type)->getAs<TagType>();
388 const TagType *tag_type =
389 ClangUtil::GetQualType(clang_type)->getAs<TagType>();
2230 } else if (const TagType *tag_type = qual_type->getAs<TagType>()) {
2230 } else if (const TagType *tag_type = qual_type->getAs<TagType>()) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 1634 if (const TagType *tag_type = dyn_cast<TagType>(parser_type))
1634 if (const TagType *tag_type = dyn_cast<TagType>(parser_type))
tools/lldb/source/Symbol/ClangASTContext.cpp 2518 const clang::TagType *tag_type = llvm::dyn_cast<clang::TagType>(clang_type);
2518 const clang::TagType *tag_type = llvm::dyn_cast<clang::TagType>(clang_type);
2635 const clang::TagType *tag_type =
2636 llvm::cast<clang::TagType>(qual_type.getTypePtr());
2641 const clang::TagType *tag_type =
2642 llvm::dyn_cast<clang::TagType>(qual_type.getTypePtr());
3582 const clang::TagType *tag_type =
3583 llvm::dyn_cast<clang::TagType>(qual_type.getTypePtr());
3881 const clang::TagType *tag_type = llvm::dyn_cast<clang::TagType>(qual_type);
3881 const clang::TagType *tag_type = llvm::dyn_cast<clang::TagType>(qual_type);
7906 if (const clang::TagType *TagT =
7907 field->getType()->getAs<clang::TagType>()) {
8770 const clang::TagType *tag_type = qual_type->getAs<clang::TagType>();
8770 const clang::TagType *tag_type = qual_type->getAs<clang::TagType>();
8799 const clang::TagType *tag_type = qual_type->getAs<clang::TagType>();
8799 const clang::TagType *tag_type = qual_type->getAs<clang::TagType>();
9721 const clang::TagType *tag_type =
9722 llvm::dyn_cast<clang::TagType>(qual_type.getTypePtr());
tools/lldb/source/Symbol/ClangASTImporter.cpp 356 if (auto *t = QualType::getFromOpaquePtr(type)->getAs<TagType>())
706 if (const TagType *tag_type = type->getAs<TagType>()) {
706 if (const TagType *tag_type = type->getAs<TagType>()) {
776 if (const TagType *tag_type = type->getAs<TagType>()) {
776 if (const TagType *tag_type = type->getAs<TagType>()) {
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; };