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()
1183 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1193 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1248 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1314 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1670 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printNestedNameSpecifier()
2836 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
2876 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
2884 bool FunctionDecl::isVariadic() const { in isVariadic()
2890 FunctionDecl::DefaultedFunctionInfo *
2891 FunctionDecl::DefaultedFunctionInfo::Create(ASTContext &Context, in Create()
2903 void FunctionDecl::setDefaultedFunctionInfo(DefaultedFunctionInfo *Info) { in setDefaultedFunctionInfo()
2911 FunctionDecl::DefaultedFunctionInfo *
2912 FunctionDecl::getDefaultedFunctionInfo() const { in getDefaultedFunctionInfo()
2916 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
2927 bool FunctionDecl::hasTrivialBody() const { in hasTrivialBody()
2940 bool FunctionDecl::isThisDeclarationInstantiatedFromAFriendDefinition() const { in isThisDeclarationInstantiatedFromAFriendDefinition()
2946 if (const FunctionDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
2963 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
2965 for (const FunctionDecl *FD : redecls()) { in isDefined()
2996 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3008 void FunctionDecl::setBody(Stmt *B) { in setBody()
3015 void FunctionDecl::setPure(bool P) { in setPure()
3028 bool FunctionDecl::isMain() const { in isMain()
3036 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
3063 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
3086 bool FunctionDecl::isReplaceableGlobalAllocationFunction( in isReplaceableGlobalAllocationFunction()
3155 bool FunctionDecl::isInlineBuiltinDeclaration() const { in isInlineBuiltinDeclaration()
3159 const FunctionDecl *Definition; in isInlineBuiltinDeclaration()
3163 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
3177 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
3181 bool FunctionDecl::isExternC() const { in isExternC()
3185 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
3191 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
3195 bool FunctionDecl::isGlobal() const { in isGlobal()
3215 bool FunctionDecl::isNoReturn() const { in isNoReturn()
3227 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
3237 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
3241 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
3245 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
3250 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3264 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3279 unsigned FunctionDecl::getBuiltinID(bool ConsiderWrapperFunctions) const { in getBuiltinID()
3339 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3344 void FunctionDecl::setParams(ASTContext &C, in setParams()
3360 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3378 bool FunctionDecl::hasOneParamOrDefaultArgs() const { in hasOneParamOrDefaultArgs()
3390 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3398 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3406 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3410 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3418 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3440 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3447 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3465 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3490 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3500 FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { in getFunctionTypeLoc()
3506 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3522 SourceRange FunctionDecl::getParametersSourceRange() const { in getParametersSourceRange()
3538 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3560 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3612 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3620 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3626 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3642 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3644 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
3649 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
3660 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
3661 FunctionDecl *FD, in setInstantiationOfMemberFunction()
3670 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
3674 void FunctionDecl::setDescribedFunctionTemplate(FunctionTemplateDecl *Template) { in setDescribedFunctionTemplate()
3680 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
3700 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
3715 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3721 FunctionDecl *
3722 FunctionDecl::getTemplateInstantiationPattern(bool ForDefinition) const { in getTemplateInstantiationPattern()
3740 const FunctionDecl *FD = nullptr; in getTemplateInstantiationPattern()
3748 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom())); in getTemplateInstantiationPattern()
3771 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3781 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
3787 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3797 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3807 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3832 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
3843 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
3874 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
3890 FunctionDecl::getTemplateSpecializationKindForInstantiation() const { in getTemplateSpecializationKindForInstantiation()
3924 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
3951 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
3963 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
3969 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
3970 const FunctionDecl *Definition; in isOutOfLine()
3978 const FunctionDecl *Definition; in isOutOfLine()
3986 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
3990 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
4104 unsigned FunctionDecl::getODRHash() const { in getODRHash()
4109 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()