Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp325 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
330 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
683 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
685 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
686 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
724 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
813 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()
5219 if (!isa<TypeDecl>(D)) in ValidateCandidate()
5269 : 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.cpp676 if (!isa<TypeDecl>(DC)) { in LookupMemberExprInRecord()
1169 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()
437 if (isa<TypeDecl>(*Res) || isa<ObjCInterfaceDecl>(*Res) || in getTypeName()
469 if (TypeDecl *TD = dyn_cast<TypeDecl>(IIDecl)) { in getTypeName()
778 if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I)) in isResultTypeOrTemplate()
966 (isa<TypeDecl>(UnderlyingFirstDecl) || in ClassifyName()
1129 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1177 TypeDecl *Type = Result.getAsSingle<TypeDecl>(); in ClassifyName()
2194 bool Sema::isIncompatibleTypedef(TypeDecl *Old, TypedefNameDecl *New) { in isIncompatibleTypedef()
2281 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()
7417 } else if (TypeDecl *TD = dyn_cast_or_null<TypeDecl>(ND)) { in CodeCompleteObjCSuperMessage()
/netbsd-src/external/apache2/llvm/dist/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.cpp234 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getCursorType()
1116 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in clang_getDeclObjCTypeEncoding()
H A DCXCursor.cpp878 CXCursor cxcursor::MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, in MakeCursorTypeRef()
886 std::pair<const TypeDecl *, SourceLocation>
889 return std::make_pair(static_cast<const TypeDecl *>(C.data[0]), in getCursorTypeRef()
H A DCXIndexDataConsumer.cpp1195 if (const TypeDecl *TD = dyn_cast<TypeDecl>(D)) in getRefCursor()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTContext.h394 TypeDecl *FILEDecl = nullptr;
397 TypeDecl *jmp_bufDecl = nullptr;
400 TypeDecl *sigjmp_bufDecl = nullptr;
403 TypeDecl *ucontext_tDecl = nullptr;
1130 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1459 QualType getTypeDeclType(const TypeDecl *Decl,
1460 const TypeDecl *PrevDecl = nullptr) const {
1802 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1812 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1824 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h3099 class TypeDecl : public NamedDecl {
3114 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
3141 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3159 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3289 class TagDecl : public TypeDecl,
H A DASTNodeTraverser.h605 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),
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DQualTypeNames.cpp46 const ASTContext &Ctx, const TypeDecl *TD,
356 const TypeDecl *TD, in createNestedNameSpecifier()
H A DASTDiagnostic.cpp452 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) { in FormatASTNodeDiagnosticArgument()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DASTConsumers.cpp107 if (auto *TD = dyn_cast<TypeDecl>(InnerD)) in print()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp77 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
H A DCGDebugInfo.h327 void CollectRecordNestedType(const TypeDecl *RD,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp432 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()

123