Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.h20 class TypeDecl; variable
146 void MaybeRecordPersistentType(clang::TypeDecl *D);
H A DClangPersistentVariables.cpp79 if (clang::TypeDecl *tdecl = llvm::dyn_cast<clang::TypeDecl>(p.m_decl)) { in GetCompilerTypeFromPersistentDecl()
H A DASTResultSynthesizer.cpp392 typedef DeclContext::specific_decl_iterator<TypeDecl> TypeDeclIterator; in RecordPersistentTypes()
401 void ASTResultSynthesizer::MaybeRecordPersistentType(TypeDecl *D) { in MaybeRecordPersistentType()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp339 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
344 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
697 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
699 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
700 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
738 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
827 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) in BuildCXXNestedNameSpecifier()
H A DSemaLookup.cpp386 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
532 if (TypeDecl *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
2298 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2565 else if (const auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in DiagnoseAmbiguousLookup()
5229 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5279 : isa<TypeDecl>(ND)) && in ValidateCandidate()
H A DSemaStmtAsm.cpp838 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
H A DSemaDeclObjC.cpp1364 if (auto typeDecl = candidate.getCorrectionDeclAs<TypeDecl>()) { in ValidateCandidate()
1485 } else if (!isa<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1539 typedef llvm::PointerUnion<TypeDecl *, ObjCInterfaceDecl *> TypeOrClassDecl; in actOnObjCTypeArgsOrProtocolQualifiers()
1550 if (auto typeDecl = dyn_cast<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1576 if (auto *actualTypeDecl = typeDecl.dyn_cast<TypeDecl *>()) in actOnObjCTypeArgsOrProtocolQualifiers()
1703 if (auto typeDecl = corrected.getCorrectionDeclAs<TypeDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaExprMember.cpp677 if (!isa<TypeDecl>(DC)) { in LookupMemberExprInRecord()
1170 if (isa<TypeDecl>(MemberDecl)) in BuildMemberReferenceExpr()
H A DSemaExprCXX.cpp185 auto *Type = dyn_cast<TypeDecl>(D->getUnderlyingDecl()); in getDestructorName()
222 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in getDestructorName()
237 if (TypeDecl *Type = Found.getAsSingle<TypeDecl>()) { in getDestructorName()
408 return isa<TypeDecl>(A->getUnderlyingDecl()) > in getDestructorName()
409 isa<TypeDecl>(B->getUnderlyingDecl()); in getDestructorName()
431 if (auto *TD = dyn_cast<TypeDecl>(FoundDecls[0]->getUnderlyingDecl())) { in getDestructorName()
448 if (auto *TD = dyn_cast<TypeDecl>(FoundD->getUnderlyingDecl())) in getDestructorName()
H A DSemaTemplate.cpp3100 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Record->getParent())) in MatchTemplateParametersToScopeSpecifier()
3110 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
3144 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Enum->getParent())) in MatchTemplateParametersToScopeSpecifier()
5000 if (Result.getAsSingle<TypeDecl>() || in CheckTemplateTypeArgument()
10657 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
H A DSemaDecl.cpp87 bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in ValidateCandidate()
215 if (!isa<TypeDecl>(ND)) in lookupUnqualifiedTypeNameInBase()
438 if (isa<TypeDecl, ObjCInterfaceDecl, UnresolvedUsingIfExistsDecl>( in getTypeName()
473 if (TypeDecl *TD = dyn_cast<TypeDecl>(IIDecl)) { in getTypeName()
786 if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I)) in isResultTypeOrTemplate()
974 (isa<TypeDecl>(UnderlyingFirstDecl) || in ClassifyName()
1137 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1190 TypeDecl *Type = Result.getAsSingle<TypeDecl>(); in ClassifyName()
2246 bool Sema::isIncompatibleTypedef(TypeDecl *Old, TypedefNameDecl *New) { in isIncompatibleTypedef()
2333 TypeDecl *Old = OldDecls.getAsSingle<TypeDecl>(); in MergeTypedefNameDecl()
[all …]
H A DSemaCodeComplete.cpp913 if (const auto *Type = dyn_cast<TypeDecl>(ND)) in getDeclUsageType()
1004 if ((isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND)) && in getBasePriority()
1418 if (isa<TypeDecl>(ND)) in IsOrdinaryNonTypeName()
1518 return isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in IsType()
2687 T = Context.getTypeDeclType(cast<TypeDecl>(Enumerator->getDeclContext())); in AddResultTypeChunk()
7420 } else if (TypeDecl *TD = dyn_cast_or_null<TypeDecl>(ND)) { in CodeCompleteObjCSuperMessage()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h395 TypeDecl *FILEDecl = nullptr;
398 TypeDecl *jmp_bufDecl = nullptr;
401 TypeDecl *sigjmp_bufDecl = nullptr;
404 TypeDecl *ucontext_tDecl = nullptr;
1175 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1504 QualType getTypeDeclType(const TypeDecl *Decl,
1505 const TypeDecl *PrevDecl = nullptr) const {
1847 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1857 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1869 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h3125 class TypeDecl : public NamedDecl {
3140 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
3167 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3185 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3315 class TagDecl : public TypeDecl,
H A DASTNodeTraverser.h629 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in VisitUsingShadowDecl()
H A DDeclTemplate.h1174 class TemplateTypeParmDecl final : public TypeDecl,
1212 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename),
H A DDeclCXX.h3809 : public TypeDecl,
3828 : TypeDecl(UnresolvedUsingTypename, DC, TargetNameLoc, TargetName, in UnresolvedUsingTypenameDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
356 const TypeDecl *TD, in createNestedNameSpecifier()
H A DASTDiagnostic.cpp453 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) { in FormatASTNodeDiagnosticArgument()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp107 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp220 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc()
H A DIndexDecl.cpp212 bool TypeOverride = isa<TypeDecl>(D); in gatherTemplatePseudoOverrides()
222 } else if (!isa<TypeDecl>(ND)) in gatherTemplatePseudoOverrides()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp77 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
H A DCGDebugInfo.h327 void CollectRecordNestedType(const TypeDecl *RD,
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp432 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()

123