Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp326 if (!isa<TypeDecl>(SD)) in isAcceptableNestedNameSpecifier()
331 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD)); in isAcceptableNestedNameSpecifier()
679 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) || in BuildCXXNestedNameSpecifier()
681 Context.getTypeDeclType(cast<TypeDecl>(OuterDecl)), in BuildCXXNestedNameSpecifier()
682 Context.getTypeDeclType(cast<TypeDecl>(SD))))) { in BuildCXXNestedNameSpecifier()
720 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl())); in BuildCXXNestedNameSpecifier()
809 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) in BuildCXXNestedNameSpecifier()
H A DSemaStmtAsm.cpp762 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
H A DSemaLookup.cpp377 assert(isa<TypeDecl>(DUnderlying) && isa<TypeDecl>(EUnderlying)); in isPreferredLookupResult()
522 if (TypeDecl *TD = dyn_cast<TypeDecl>(D)) { in resolveKind()
1964 if (isa<VarDecl>(D) || isa<TypeDecl>(D) || isa<EnumConstantDecl>(D)) in HasOnlyStaticMembers()
4940 if (!isa<TypeDecl>(D)) in ValidateCandidate()
H A DSemaDeclObjC.cpp1356 if (auto typeDecl = candidate.getCorrectionDeclAs<TypeDecl>()) { in ValidateCandidate()
1473 } else if (!isa<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1527 typedef llvm::PointerUnion<TypeDecl *, ObjCInterfaceDecl *> TypeOrClassDecl; in actOnObjCTypeArgsOrProtocolQualifiers()
1538 if (auto typeDecl = dyn_cast<TypeDecl>(decl)) { in actOnObjCTypeArgsOrProtocolQualifiers()
1564 if (auto *actualTypeDecl = typeDecl.dyn_cast<TypeDecl *>()) in actOnObjCTypeArgsOrProtocolQualifiers()
1693 if (auto typeDecl = corrected.getCorrectionDeclAs<TypeDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaExprMember.cpp676 if (!isa<TypeDecl>(DC)) { in LookupMemberExprInRecord()
1155 if (isa<TypeDecl>(MemberDecl)) in BuildMemberReferenceExpr()
H A DSemaTemplate.cpp2592 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Record->getParent())) in MatchTemplateParametersToScopeSpecifier()
2602 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
2636 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Enum->getParent())) in MatchTemplateParametersToScopeSpecifier()
4371 if (Result.getAsSingle<TypeDecl>() || in CheckTemplateTypeArgument()
9724 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
H A DSemaDecl.cpp85 bool IsType = isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in ValidateCandidate()
208 if (!isa<TypeDecl>(ND)) in lookupUnqualifiedTypeNameInBase()
431 if (isa<TypeDecl>(*Res) || isa<ObjCInterfaceDecl>(*Res) || in getTypeName()
465 if (TypeDecl *TD = dyn_cast<TypeDecl>(IIDecl)) { in getTypeName()
770 if (isa<TypeDecl>(*I) || isa<ObjCInterfaceDecl>(*I)) in isResultTypeOrTemplate()
944 (isa<TypeDecl>(UnderlyingFirstDecl) || in ClassifyName()
1092 if (TypeDecl *Type = dyn_cast<TypeDecl>(FirstDecl)) { in ClassifyName()
1136 TypeDecl *Type = Result.getAsSingle<TypeDecl>(); in ClassifyName()
2067 bool Sema::isIncompatibleTypedef(TypeDecl *Old, TypedefNameDecl *New) { in isIncompatibleTypedef()
2154 TypeDecl *Old = OldDecls.getAsSingle<TypeDecl>(); in MergeTypedefNameDecl()
[all …]
H A DSemaCodeComplete.cpp668 if (const auto *Type = dyn_cast<TypeDecl>(ND)) in getDeclUsageType()
759 if ((isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND)) && in getBasePriority()
1090 if (isa<TypeDecl>(ND)) in IsOrdinaryNonTypeName()
1190 return isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND); in IsType()
2281 T = Context.getTypeDeclType(cast<TypeDecl>(Enumerator->getDeclContext())); in AddResultTypeChunk()
6279 } else if (TypeDecl *TD = dyn_cast_or_null<TypeDecl>(ND)) { in CodeCompleteObjCSuperMessage()
H A DSemaDeclCXX.cpp1064 auto *TD = R.getAsSingle<TypeDecl>(); in getTupleLikeElementType()
3791 return isa<TypeDecl>(ND); in ValidateCandidate()
3887 TypeDecl *TyD = R.getAsSingle<TypeDecl>(); in BuildMemInitializer()
3938 } else if (TypeDecl *Type = Corr.getCorrectionDeclAs<TypeDecl>()) { in BuildMemInitializer()
9895 if (isa<TypeDecl>(ND)) in ValidateCandidate()
10116 if (!R.getAsSingle<TypeDecl>()) { in BuildUsingDeclaration()
10127 if (IsInstantiation && R.getAsSingle<TypeDecl>()) { in BuildUsingDeclaration()
10239 if (!isa<TypeDecl>(D) && !isa<UsingDecl>(D) && !isa<UsingPackDecl>(D)) { in CheckUsingDeclRedeclaration()
10332 if (R.getAsSingle<TypeDecl>()) { in CheckUsingDeclQualifier()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DASTContext.h363 TypeDecl *FILEDecl = nullptr;
366 TypeDecl *jmp_bufDecl = nullptr;
369 TypeDecl *sigjmp_bufDecl = nullptr;
372 TypeDecl *ucontext_tDecl = nullptr;
1128 QualType getTypeDeclTypeSlow(const TypeDecl *Decl) const;
1396 QualType getTypeDeclType(const TypeDecl *Decl,
1397 const TypeDecl *PrevDecl = nullptr) const {
1739 void setFILEDecl(TypeDecl *FILEDecl) { this->FILEDecl = FILEDecl; } in setFILEDecl()
1749 void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { in setjmp_bufDecl()
1761 void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { in setsigjmp_bufDecl()
[all …]
H A DDecl.h2874 class TypeDecl : public NamedDecl {
2889 TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
2916 class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
2934 : TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C), in TypedefNameDecl()
3064 class TagDecl : public TypeDecl,
H A DDeclTemplate.h1158 class TemplateTypeParmDecl : public TypeDecl {
1176 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename) {}
H A DDeclCXX.h3668 : public TypeDecl,
3687 : TypeDecl(UnresolvedUsingTypename, DC, TargetNameLoc, TargetName,
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.h182 void MaybeRecordPersistentType(clang::TypeDecl *D);
H A DASTResultSynthesizer.cpp402 typedef DeclContext::specific_decl_iterator<TypeDecl> TypeDeclIterator; in RecordPersistentTypes()
411 void ASTResultSynthesizer::MaybeRecordPersistentType(TypeDecl *D) { in MaybeRecordPersistentType()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DQualTypeNames.cpp49 const ASTContext &Ctx, const TypeDecl *TD,
359 const TypeDecl *TD, in createNestedNameSpecifier()
H A DASTDiagnostic.cpp434 } else if (TypeDecl *Type = dyn_cast<TypeDecl>(DC)) { in FormatASTNodeDiagnosticArgument()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Core/
H A DClangForward.h118 class TypeDecl; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp176 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); }); in VisitDependentNameTypeLoc()
H A DIndexDecl.cpp205 bool TypeOverride = isa<TypeDecl>(D); in gatherTemplatePseudoOverrides()
215 } else if (!isa<TypeDecl>(ND)) in gatherTemplatePseudoOverrides()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp78 bool VisitTypeDecl(TypeDecl *D) { in VisitTypeDecl()
H A DCGDebugInfo.h297 void CollectRecordNestedType(const TypeDecl *RD,
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp434 if (isa<TypeDecl>(D)) in isInFunctionLikeBodyOfCode()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectMemory.cpp483 clang::TypeDecl *tdecl = llvm::dyn_cast_or_null<clang::TypeDecl>( in DoExecute()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2921 const QualType TypeDecl = Node.getReceiverType(); in AST_MATCHER_P() local
2922 return InnerMatcher.matches(TypeDecl, Finder, Builder); in AST_MATCHER_P()

12