Lines Matching refs:FunctionDecl

306     if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))  in getOutermostFuncOrBlockContext()
368 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
388 LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
537 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
550 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
659 } else if (const FunctionDecl *Function = D->getAsFunction()) { in getLVForNamespaceScopeDecl()
677 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
784 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1129 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1139 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1194 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1260 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1575 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printQualifiedName()
2646 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
2681 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
2689 bool FunctionDecl::isVariadic() const { in isVariadic()
2695 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
2706 bool FunctionDecl::hasTrivialBody() const in hasTrivialBody()
2720 bool FunctionDecl::isDefined(const FunctionDecl *&Definition) const { in isDefined()
2731 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
2741 void FunctionDecl::setBody(Stmt *B) { in setBody()
2747 void FunctionDecl::setPure(bool P) { in setPure()
2760 bool FunctionDecl::isMain() const { in isMain()
2768 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
2795 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
2818 bool FunctionDecl::isReplaceableGlobalAllocationFunction(bool *IsAligned) const { in isReplaceableGlobalAllocationFunction()
2884 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
2898 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
2902 bool FunctionDecl::isExternC() const { in isExternC()
2906 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
2910 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
2914 bool FunctionDecl::isGlobal() const { in isGlobal()
2934 bool FunctionDecl::isNoReturn() const { in isNoReturn()
2946 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
2956 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
2960 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
2964 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
2969 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
2983 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2994 unsigned FunctionDecl::getBuiltinID() const { in getBuiltinID()
3055 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3060 void FunctionDecl::setParams(ASTContext &C, in setParams()
3076 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3092 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3100 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3108 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3112 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3120 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3142 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3149 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3164 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3192 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3202 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3222 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3251 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3300 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3309 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3316 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3332 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3334 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
3339 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
3344 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
3345 FunctionDecl *FD, in setInstantiationOfMemberFunction()
3354 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
3358 void FunctionDecl::setDescribedFunctionTemplate(FunctionTemplateDecl *Template) { in setDescribedFunctionTemplate()
3362 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
3386 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
3401 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3414 FunctionDecl *FunctionDecl::getTemplateInstantiationPattern() const { in getTemplateInstantiationPattern()
3455 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3464 FunctionDecl *FunctionDecl::getClassScopeSpecializationPattern() const { in getClassScopeSpecializationPattern()
3469 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
3475 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3485 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3495 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3516 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
3527 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
3558 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
3575 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
3602 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
3614 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
3620 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
3621 const FunctionDecl *Definition; in isOutOfLine()
3629 const FunctionDecl *Definition; in isOutOfLine()
3637 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
3641 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
3736 unsigned FunctionDecl::getODRHash() const { in getODRHash()
3741 unsigned FunctionDecl::getODRHash() { in getODRHash()
4421 FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC, in Create()
4429 FunctionDecl *New = in Create()
4430 new (C, DC) FunctionDecl(Function, C, DC, StartLoc, NameInfo, T, TInfo, in Create()
4436 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
4437 return new (C, ID) FunctionDecl(Function, C, nullptr, SourceLocation(), in CreateDeserialized()