Home
last modified time | relevance | path

Searched refs:TypeDecl (Results 1 – 25 of 56) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp22 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl() local
26 TypeDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
28 TypeDecl = TagTy->getDecl(); in getUnderlyingTypeDecl()
31 TypeDecl = ObjCITy->getDecl(); in getUnderlyingTypeDecl()
34 if (TypeDecl && TypedefTy) { in getUnderlyingTypeDecl()
40 TypeDecl = TypedefDecl; in getUnderlyingTypeDecl()
43 return TypeDecl; in getUnderlyingTypeDecl()
54 if (TypeDecl) { in getSymbolReferenceForType()
56 TypeName = TypeDecl->getName().str(); in getSymbolReferenceForType()
58 clang::index::generateUSRForDecl(TypeDecl, TypeUSR); in getSymbolReferenceForType()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.h20 class TypeDecl; variable
146 void MaybeRecordPersistentType(clang::TypeDecl *D);
H A DClangPersistentVariables.cpp82 if (clang::TypeDecl *tdecl = llvm::dyn_cast<clang::TypeDecl>(p.m_decl)) { in GetCompilerTypeFromPersistentDecl()
H A DASTResultSynthesizer.cpp418 typedef DeclContext::specific_decl_iterator<TypeDecl> TypeDeclIterator; in RecordPersistentTypes()
427 void ASTResultSynthesizer::MaybeRecordPersistentType(TypeDecl *D) { in MaybeRecordPersistentType()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp360 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
365 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
673 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
675 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
676 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
714 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
807 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) { in BuildCXXNestedNameSpecifier()
H A DSemaStmtAsm.cpp856 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
H A DSemaLookup.cpp390 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
559 if (const auto *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
2569 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2836 else if (const auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in DiagnoseAmbiguousLookup()
5571 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5621 : isa<TypeDecl>(ND)) && in ValidateCandidate()
H A DSemaDeclObjC.cpp1380 if (auto typeDecl = candidate.getCorrectionDeclAs<TypeDecl>()) { in ValidateCandidate()
1501 } else if (!isa<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1555 typedef llvm::PointerUnion<TypeDecl *, ObjCInterfaceDecl *> TypeOrClassDecl; in actOnObjCTypeArgsOrProtocolQualifiers()
1566 if (auto typeDecl = dyn_cast<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1592 if (auto *actualTypeDecl = typeDecl.dyn_cast<TypeDecl *>()) in actOnObjCTypeArgsOrProtocolQualifiers()
1719 if (auto typeDecl = corrected.getCorrectionDeclAs<TypeDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaExprMember.cpp710 if (!isa<TypeDecl>(DC)) { in LookupMemberExprInRecord()
1204 if (isa<TypeDecl>(MemberDecl)) in BuildMemberReferenceExpr()
H A DSemaExprCXX.cpp193 auto *Type = dyn_cast<TypeDecl>(D->getUnderlyingDecl()); in getDestructorName()
230 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in getDestructorName()
245 if (TypeDecl *Type = Found.getAsSingle<TypeDecl>()) { in getDestructorName()
417 return isa<TypeDecl>(A->getUnderlyingDecl()) > in getDestructorName()
418 isa<TypeDecl>(B->getUnderlyingDecl()); in getDestructorName()
440 if (auto *TD = dyn_cast<TypeDecl>(FoundDecls[0]->getUnderlyingDecl())) { in getDestructorName()
457 if (auto *TD = dyn_cast<TypeDecl>(FoundD->getUnderlyingDecl())) in getDestructorName()
H A DSemaDecl.cpp93 bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in ValidateCandidate()
226 if (!isa<TypeDecl>(ND)) in lookupUnqualifiedTypeNameInBase()
518 if (isa<TypeDecl, ObjCInterfaceDecl, UnresolvedUsingIfExistsDecl>( in getTypeName()
556 if (TypeDecl *TD = dyn_cast<TypeDecl>(IIDecl)) { in getTypeName()
865 if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I)) in isResultTypeOrTemplate()
1042 (isa<TypeDecl>(UnderlyingFirstDecl) || in ClassifyName()
1208 auto BuildTypeFor = [&](TypeDecl *Type, NamedDecl *Found) { in ClassifyName()
1216 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1266 TypeDecl *Type = Result.getAsSingle<TypeDecl>(); in ClassifyName()
2660 TypeDecl *Old = OldDecls.getAsSingle<TypeDecl>(); in MergeTypedefNameDecl()
[all …]
H A DSemaTemplate.cpp3421 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Record->getParent())) in MatchTemplateParametersToScopeSpecifier()
3431 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
3465 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Enum->getParent())) in MatchTemplateParametersToScopeSpecifier()
5367 if (Result.getAsSingle<TypeDecl>() || in CheckTemplateTypeArgument()
11323 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h402 TypeDecl *FILEDecl = nullptr;
405 TypeDecl *jmp_bufDecl = nullptr;
408 TypeDecl *sigjmp_bufDecl = nullptr;
411 TypeDecl *ucontext_tDecl = nullptr;
1225 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1572 QualType getTypeDeclType(const TypeDecl *Decl,
1573 const TypeDecl *PrevDecl = nullptr) const {
1930 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1940 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1952 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h3349 class TypeDecl : public NamedDecl {
3364 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
3391 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3409 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3539 class TagDecl : public TypeDecl,
3802 using TypeDecl::printName;
H A DASTNodeTraverser.h648 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in VisitUsingShadowDecl()
H A DDeclTemplate.h1176 class TemplateTypeParmDecl final : public TypeDecl,
1214 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename),
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
358 const TypeDecl *TD, in createNestedNameSpecifier()
H A DASTDiagnostic.cpp485 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) { in FormatASTNodeDiagnosticArgument()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp110 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp230 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc()
H A DIndexDecl.cpp218 bool TypeOverride = isa<TypeDecl>(D); in gatherTemplatePseudoOverrides()
228 } else if (!isa<TypeDecl>(ND)) in gatherTemplatePseudoOverrides()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp433 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp78 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
H A DCGDebugInfo.h361 void CollectRecordNestedType(const TypeDecl *RD,
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.cpp311 if (auto *T = dyn_cast<TypeDecl>(asDecl())) in getType()

123