Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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()
51 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getSymbolReferenceForType() local
54 if (TypeDecl) { in getSymbolReferenceForType()
56 TypeName = TypeDecl->getName().str(); in getSymbolReferenceForType()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.h20 class TypeDecl; variable
146 void MaybeRecordPersistentType(clang::TypeDecl *D);
H A DClangPersistentVariables.cpp81 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()
/openbsd-src/gnu/llvm/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()
831 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) { in BuildCXXNestedNameSpecifier()
H A DSemaLookup.cpp389 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
536 if (TypeDecl *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
2565 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2832 else if (const auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in DiagnoseAmbiguousLookup()
5553 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5603 : isa<TypeDecl>(ND)) && in ValidateCandidate()
H A DSemaStmtAsm.cpp854 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
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.cpp678 if (!isa<TypeDecl>(DC)) { in LookupMemberExprInRecord()
1171 if (isa<TypeDecl>(MemberDecl)) in BuildMemberReferenceExpr()
H A DSemaExprCXX.cpp191 auto *Type = dyn_cast<TypeDecl>(D->getUnderlyingDecl()); in getDestructorName()
228 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in getDestructorName()
243 if (TypeDecl *Type = Found.getAsSingle<TypeDecl>()) { in getDestructorName()
414 return isa<TypeDecl>(A->getUnderlyingDecl()) > in getDestructorName()
415 isa<TypeDecl>(B->getUnderlyingDecl()); in getDestructorName()
437 if (auto *TD = dyn_cast<TypeDecl>(FoundDecls[0]->getUnderlyingDecl())) { in getDestructorName()
454 if (auto *TD = dyn_cast<TypeDecl>(FoundD->getUnderlyingDecl())) in getDestructorName()
H A DSemaTemplate.cpp3252 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Record->getParent())) in MatchTemplateParametersToScopeSpecifier()
3262 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
3296 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Enum->getParent())) in MatchTemplateParametersToScopeSpecifier()
5190 if (Result.getAsSingle<TypeDecl>() || in CheckTemplateTypeArgument()
11017 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXCursor.h42 class TypeDecl; variable
88 CXCursor MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc,
93 std::pair<const TypeDecl *, SourceLocation> getCursorTypeRef(CXCursor C);
H A DCXType.cpp242 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getCursorType()
1140 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getDeclObjCTypeEncoding()
H A DCXCursor.cpp928 CXCursor cxcursor::MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, in MakeCursorTypeRef()
936 std::pair<const TypeDecl *, SourceLocation>
939 return std::make_pair(static_cast<const TypeDecl *>(C.data[0]), in getCursorTypeRef()
H A DCXIndexDataConsumer.cpp1208 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in getRefCursor()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTContext.h396 TypeDecl *FILEDecl = nullptr;
399 TypeDecl *jmp_bufDecl = nullptr;
402 TypeDecl *sigjmp_bufDecl = nullptr;
405 TypeDecl *ucontext_tDecl = nullptr;
1209 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1553 QualType getTypeDeclType(const TypeDecl *Decl,
1554 const TypeDecl *PrevDecl = nullptr) const {
1907 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1917 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1929 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h3246 class TypeDecl : public NamedDecl {
3261 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
3288 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3306 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3436 class TagDecl : public TypeDecl,
H A DASTNodeTraverser.h642 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl())) in VisitUsingShadowDecl()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
358 const TypeDecl *TD, in createNestedNameSpecifier()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DASTConsumers.cpp110 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp433 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp78 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
H A DCGDebugInfo.h339 void CollectRecordNestedType(const TypeDecl *RD,

123