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()
620 if (auto *FD = dyn_cast<FunctionDecl>(D)) in getStorageClass()
690 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
807 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1085 if (const auto *FD = dyn_cast<FunctionDecl>(this)) in isReserved()
1184 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1194 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1249 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1315 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1670 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printNestedNameSpecifier()
2843 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
2883 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
2891 bool FunctionDecl::isVariadic() const { in isVariadic()
2897 FunctionDecl::DefaultedFunctionInfo *
2898 FunctionDecl::DefaultedFunctionInfo::Create(ASTContext &Context, in Create()
2910 void FunctionDecl::setDefaultedFunctionInfo(DefaultedFunctionInfo *Info) { in setDefaultedFunctionInfo()
2918 FunctionDecl::DefaultedFunctionInfo *
2919 FunctionDecl::getDefaultedFunctionInfo() const { in getDefaultedFunctionInfo()
2923 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
2934 bool FunctionDecl::hasTrivialBody() const { in hasTrivialBody()
2947 bool FunctionDecl::isThisDeclarationInstantiatedFromAFriendDefinition() const { in isThisDeclarationInstantiatedFromAFriendDefinition()
2953 if (const FunctionDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
2970 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
2972 for (const FunctionDecl *FD : redecls()) { in isDefined()
3003 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3015 void FunctionDecl::setBody(Stmt *B) { in setBody()
3022 void FunctionDecl::setPure(bool P) { in setPure()
3035 bool FunctionDecl::isMain() const { in isMain()
3043 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
3070 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
3093 bool FunctionDecl::isReplaceableGlobalAllocationFunction( in isReplaceableGlobalAllocationFunction()
3162 bool FunctionDecl::isInlineBuiltinDeclaration() const { in isInlineBuiltinDeclaration()
3166 const FunctionDecl *Definition; in isInlineBuiltinDeclaration()
3170 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
3184 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
3188 bool FunctionDecl::isExternC() const { in isExternC()
3192 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
3198 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
3202 bool FunctionDecl::isGlobal() const { in isGlobal()
3222 bool FunctionDecl::isNoReturn() const { in isNoReturn()
3234 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
3244 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
3248 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
3252 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
3257 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3271 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3286 unsigned FunctionDecl::getBuiltinID(bool ConsiderWrapperFunctions) const { in getBuiltinID()
3346 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3351 void FunctionDecl::setParams(ASTContext &C, in setParams()
3367 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3385 bool FunctionDecl::hasOneParamOrDefaultArgs() const { in hasOneParamOrDefaultArgs()
3397 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3405 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3413 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3417 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3425 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3447 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3454 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3472 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3497 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3507 FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { in getFunctionTypeLoc()
3513 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3529 SourceRange FunctionDecl::getParametersSourceRange() const { in getParametersSourceRange()
3545 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3567 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3619 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3627 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3633 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3649 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3651 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
3656 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
3667 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
3668 FunctionDecl *FD, in setInstantiationOfMemberFunction()
3677 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
3681 void FunctionDecl::setDescribedFunctionTemplate(FunctionTemplateDecl *Template) { in setDescribedFunctionTemplate()
3687 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
3707 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
3722 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3728 FunctionDecl *
3729 FunctionDecl::getTemplateInstantiationPattern(bool ForDefinition) const { in getTemplateInstantiationPattern()
3747 const FunctionDecl *FD = nullptr; in getTemplateInstantiationPattern()
3755 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom())); in getTemplateInstantiationPattern()
3778 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3788 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
3794 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3804 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3814 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3839 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
3850 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
3881 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
3897 FunctionDecl::getTemplateSpecializationKindForInstantiation() const { in getTemplateSpecializationKindForInstantiation()
3931 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
3958 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
3970 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
3976 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
3977 const FunctionDecl *Definition; in isOutOfLine()
3985 const FunctionDecl *Definition; in isOutOfLine()
3993 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
3997 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
4111 unsigned FunctionDecl::getODRHash() const { in getODRHash()
4116 unsigned FunctionDecl::getODRHash() { in getODRHash()
4845 FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC, in Create()
4853 FunctionDecl *New = in Create()
4854 new (C, DC) FunctionDecl(Function, C, DC, StartLoc, NameInfo, T, TInfo, in Create()
4861 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
4862 return new (C, ID) FunctionDecl( in CreateDeserialized()