Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp23 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl() local
27 TypeDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
29 TypeDecl = TagTy->getDecl(); in getUnderlyingTypeDecl()
32 TypeDecl = ObjCITy->getDecl(); in getUnderlyingTypeDecl()
35 if (TypeDecl && TypedefTy) { in getUnderlyingTypeDecl()
41 TypeDecl = TypedefDecl; in getUnderlyingTypeDecl()
44 return TypeDecl; in getUnderlyingTypeDecl()
52 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getSymbolReferenceForType() local
56 if (TypeDecl) { in getSymbolReferenceForType()
58 TypeName = TypeDecl->getName().str(); in getSymbolReferenceForType()
[all …]
/freebsd/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()
H A DClangASTSource.cpp811 if (llvm::isa<clang::TypeDecl>(decl_from_modules) || in FindDeclInModules()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp330 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
335 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
608 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
610 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
611 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
649 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
750 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.cpp392 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
561 if (const auto *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
2560 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2799 else if (const auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in DiagnoseAmbiguousLookup()
5437 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5487 : isa<TypeDecl>(ND)) && in ValidateCandidate()
H A DSemaDeclObjC.cpp1380 if (auto typeDecl = candidate.getCorrectionDeclAs<TypeDecl>()) { in ValidateCandidate()
1497 } else if (!isa<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1551 typedef llvm::PointerUnion<TypeDecl *, ObjCInterfaceDecl *> TypeOrClassDecl; in actOnObjCTypeArgsOrProtocolQualifiers()
1562 if (auto typeDecl = dyn_cast<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1588 if (auto *actualTypeDecl = typeDecl.dyn_cast<TypeDecl *>()) in actOnObjCTypeArgsOrProtocolQualifiers()
1715 if (auto typeDecl = corrected.getCorrectionDeclAs<TypeDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaTemplate.cpp2720 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Record->getParent())) in MatchTemplateParametersToScopeSpecifier()
2730 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
2764 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Enum->getParent())) in MatchTemplateParametersToScopeSpecifier()
4658 if (Result.getAsSingle<TypeDecl>() || in CheckTemplateTypeArgument()
10554 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
H A DSemaExprCXX.cpp192 auto *Type = dyn_cast<TypeDecl>(D->getUnderlyingDecl()); in getDestructorName()
229 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in getDestructorName()
244 if (TypeDecl *Type = Found.getAsSingle<TypeDecl>()) { in getDestructorName()
416 return isa<TypeDecl>(A->getUnderlyingDecl()) > in getDestructorName()
417 isa<TypeDecl>(B->getUnderlyingDecl()); in getDestructorName()
439 if (auto *TD = dyn_cast<TypeDecl>(FoundDecls[0]->getUnderlyingDecl())) { in getDestructorName()
456 if (auto *TD = dyn_cast<TypeDecl>(FoundD->getUnderlyingDecl())) in getDestructorName()
H A DSemaDecl.cpp102 bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in ValidateCandidate()
186 if (!isa<TypeDecl>(ND)) in lookupUnqualifiedTypeNameInBase()
470 if (isa<TypeDecl, ObjCInterfaceDecl, UnresolvedUsingIfExistsDecl>( in getTypeName()
508 if (TypeDecl *TD = dyn_cast<TypeDecl>(IIDecl)) { in getTypeName()
799 if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I)) in isResultTypeOrTemplate()
977 (isa<TypeDecl>(UnderlyingFirstDecl) || in ClassifyName()
1141 auto BuildTypeFor = [&](TypeDecl *Type, NamedDecl *Found) { in ClassifyName()
1149 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1203 TypeDecl *Type = Result.getAsSingle<TypeDecl>(); in ClassifyName()
2433 bool Sema::isIncompatibleTypedef(const TypeDecl *Old, TypedefNameDecl *New) { in isIncompatibleTypedef()
[all …]
H A DSemaCodeComplete.cpp943 if (const auto *Type = dyn_cast<TypeDecl>(ND)) in getDeclUsageType()
1034 if ((isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND)) && in getBasePriority()
1518 if (isa<TypeDecl>(ND)) in IsOrdinaryNonTypeName()
1619 return isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in IsType()
2798 T = Context.getTypeDeclType(cast<TypeDecl>(Enumerator->getDeclContext())); in AddResultTypeChunk()
8127 } else if (TypeDecl *TD = dyn_cast_or_null<TypeDecl>(ND)) { in CodeCompleteObjCSuperMessage()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h414 TypeDecl *FILEDecl = nullptr;
417 TypeDecl *jmp_bufDecl = nullptr;
420 TypeDecl *sigjmp_bufDecl = nullptr;
423 TypeDecl *ucontext_tDecl = nullptr;
1270 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1634 QualType getTypeDeclType(const TypeDecl *Decl,
1635 const TypeDecl *PrevDecl = nullptr) const {
1997 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
2007 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
2019 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h3363 class TypeDecl : public NamedDecl {
3378 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, const IdentifierInfo *Id,
3405 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3423 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3555 class TagDecl : public TypeDecl,
3818 using TypeDecl::printName;
H A DASTNodeTraverser.h739 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in VisitUsingShadowDecl()
H A DDeclTemplate.h1157 class TemplateTypeParmDecl final : public TypeDecl,
1195 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename),
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
359 const TypeDecl *TD, in createNestedNameSpecifier()
H A DASTDiagnostic.cpp485 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) { in FormatASTNodeDiagnosticArgument()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp110 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/freebsd/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/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp433 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.cpp371 if (const auto *T = dyn_cast<TypeDecl>(asDecl())) in getType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h371 void CollectRecordNestedType(const TypeDecl *RD,

123