Lines Matching refs:FunctionDecl

308     if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))  in getOutermostFuncOrBlockContext()
370 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
390 LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
549 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
562 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
640 if (auto *FD = dyn_cast<FunctionDecl>(D)) in getStorageClass()
710 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
828 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1127 if (auto *FD = dyn_cast<FunctionDecl>(this)) in isReserved()
1216 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1226 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1281 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1347 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1711 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printNestedNameSpecifier()
2936 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
2977 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
2985 bool FunctionDecl::isVariadic() const { in isVariadic()
2991 FunctionDecl::DefaultedFunctionInfo *
2992 FunctionDecl::DefaultedFunctionInfo::Create(ASTContext &Context, in Create()
3004 void FunctionDecl::setDefaultedFunctionInfo(DefaultedFunctionInfo *Info) { in setDefaultedFunctionInfo()
3012 FunctionDecl::DefaultedFunctionInfo *
3013 FunctionDecl::getDefaultedFunctionInfo() const { in getDefaultedFunctionInfo()
3017 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
3028 bool FunctionDecl::hasTrivialBody() const { in hasTrivialBody()
3041 bool FunctionDecl::isThisDeclarationInstantiatedFromAFriendDefinition() const { in isThisDeclarationInstantiatedFromAFriendDefinition()
3047 if (const FunctionDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
3064 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
3066 for (const FunctionDecl *FD : redecls()) { in isDefined()
3097 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3109 void FunctionDecl::setBody(Stmt *B) { in setBody()
3116 void FunctionDecl::setPure(bool P) { in setPure()
3129 bool FunctionDecl::isMain() const { in isMain()
3137 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
3164 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
3187 bool FunctionDecl::isReplaceableGlobalAllocationFunction( in isReplaceableGlobalAllocationFunction()
3256 bool FunctionDecl::isInlineBuiltinDeclaration() const { in isInlineBuiltinDeclaration()
3260 const FunctionDecl *Definition; in isInlineBuiltinDeclaration()
3266 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
3280 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
3284 bool FunctionDecl::isExternC() const { in isExternC()
3288 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
3294 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
3298 bool FunctionDecl::isGlobal() const { in isGlobal()
3317 bool FunctionDecl::isNoReturn() const { in isNoReturn()
3329 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
3341 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
3345 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
3349 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
3353 bool FunctionDecl::isTargetClonesMultiVersion() const { in isTargetClonesMultiVersion()
3358 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3372 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3387 unsigned FunctionDecl::getBuiltinID(bool ConsiderWrapperFunctions) const { in getBuiltinID()
3447 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3452 void FunctionDecl::setParams(ASTContext &C, in setParams()
3468 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3486 bool FunctionDecl::hasOneParamOrDefaultArgs() const { in hasOneParamOrDefaultArgs()
3498 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3506 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3514 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3518 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3526 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3548 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3555 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3573 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3598 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3608 FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { in getFunctionTypeLoc()
3614 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3630 SourceRange FunctionDecl::getParametersSourceRange() const { in getParametersSourceRange()
3646 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3668 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3720 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3728 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3734 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3738 if (isa<FunctionDecl>(ND)) in getTemplatedKind()
3755 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3757 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
3762 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
3773 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
3774 FunctionDecl *FD, in setInstantiationOfMemberFunction()
3783 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
3788 void FunctionDecl::setDescribedFunctionTemplate( in setDescribedFunctionTemplate()
3795 void FunctionDecl::setInstantiatedFromDecl(FunctionDecl *FD) { in setInstantiatedFromDecl()
3801 FunctionDecl *FunctionDecl::getInstantiatedFromDecl() const { in getInstantiatedFromDecl()
3802 return dyn_cast_or_null<FunctionDecl>( in getInstantiatedFromDecl()
3806 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
3826 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
3841 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3847 FunctionDecl *
3848 FunctionDecl::getTemplateInstantiationPattern(bool ForDefinition) const { in getTemplateInstantiationPattern()
3866 const FunctionDecl *FD = nullptr; in getTemplateInstantiationPattern()
3874 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom())); in getTemplateInstantiationPattern()
3897 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3907 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
3913 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3923 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3933 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3958 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
3969 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
4000 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
4016 FunctionDecl::getTemplateSpecializationKindForInstantiation() const { in getTemplateSpecializationKindForInstantiation()
4050 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
4077 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
4089 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
4095 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
4096 const FunctionDecl *Definition; in isOutOfLine()
4104 const FunctionDecl *Definition; in isOutOfLine()
4112 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
4116 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
4230 unsigned FunctionDecl::getODRHash() const { in getODRHash()
4235 unsigned FunctionDecl::getODRHash() { in getODRHash()
4990 FunctionDecl *
4991 FunctionDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
4997 FunctionDecl *New = new (C, DC) FunctionDecl( in Create()
5004 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
5005 return new (C, ID) FunctionDecl( in CreateDeserialized()