Lines Matching refs:FunctionDecl
307 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
369 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
389 LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
548 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
561 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
639 if (auto *FD = dyn_cast<FunctionDecl>(D)) in getStorageClass()
709 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
828 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1146 if (auto *FD = dyn_cast<FunctionDecl>(this)) in isReserved()
1235 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1245 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1305 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1372 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1740 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printNestedNameSpecifier()
2964 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
3006 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
3014 bool FunctionDecl::isVariadic() const { in isVariadic()
3020 FunctionDecl::DefaultedFunctionInfo *
3021 FunctionDecl::DefaultedFunctionInfo::Create(ASTContext &Context, in Create()
3033 void FunctionDecl::setDefaultedFunctionInfo(DefaultedFunctionInfo *Info) { in setDefaultedFunctionInfo()
3041 FunctionDecl::DefaultedFunctionInfo *
3042 FunctionDecl::getDefaultedFunctionInfo() const { in getDefaultedFunctionInfo()
3046 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
3057 bool FunctionDecl::hasTrivialBody() const { in hasTrivialBody()
3070 bool FunctionDecl::isThisDeclarationInstantiatedFromAFriendDefinition() const { in isThisDeclarationInstantiatedFromAFriendDefinition()
3076 if (const FunctionDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
3093 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
3095 for (const FunctionDecl *FD : redecls()) { in isDefined()
3126 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3138 void FunctionDecl::setBody(Stmt *B) { in setBody()
3145 void FunctionDecl::setPure(bool P) { in setPure()
3158 bool FunctionDecl::isMain() const { in isMain()
3166 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
3193 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
3218 bool FunctionDecl::isReplaceableGlobalAllocationFunction( in isReplaceableGlobalAllocationFunction()
3287 bool FunctionDecl::isInlineBuiltinDeclaration() const { in isInlineBuiltinDeclaration()
3291 const FunctionDecl *Definition; in isInlineBuiltinDeclaration()
3297 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
3311 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
3315 bool FunctionDecl::isExternC() const { in isExternC()
3319 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
3325 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
3329 bool FunctionDecl::isGlobal() const { in isGlobal()
3348 bool FunctionDecl::isNoReturn() const { in isNoReturn()
3360 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
3374 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
3378 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
3382 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
3387 bool FunctionDecl::isTargetClonesMultiVersion() const { in isTargetClonesMultiVersion()
3392 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3406 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3421 unsigned FunctionDecl::getBuiltinID(bool ConsiderWrapperFunctions) const { in getBuiltinID()
3481 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3486 void FunctionDecl::setParams(ASTContext &C, in setParams()
3502 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3520 bool FunctionDecl::hasOneParamOrDefaultArgs() const { in hasOneParamOrDefaultArgs()
3532 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3540 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3548 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3552 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3560 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3582 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3589 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3607 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3632 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3642 FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { in getFunctionTypeLoc()
3648 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3664 SourceRange FunctionDecl::getParametersSourceRange() const { in getParametersSourceRange()
3680 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3702 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3754 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3762 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3768 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3772 if (isa<FunctionDecl>(ND)) in getTemplatedKind()
3789 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3791 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
3796 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
3807 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
3808 FunctionDecl *FD, in setInstantiationOfMemberFunction()
3817 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
3822 void FunctionDecl::setDescribedFunctionTemplate( in setDescribedFunctionTemplate()
3829 void FunctionDecl::setInstantiatedFromDecl(FunctionDecl *FD) { in setInstantiatedFromDecl()
3835 FunctionDecl *FunctionDecl::getInstantiatedFromDecl() const { in getInstantiatedFromDecl()
3836 return dyn_cast_or_null<FunctionDecl>( in getInstantiatedFromDecl()
3840 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
3860 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
3875 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3881 FunctionDecl *
3882 FunctionDecl::getTemplateInstantiationPattern(bool ForDefinition) const { in getTemplateInstantiationPattern()
3900 const FunctionDecl *FD = nullptr; in getTemplateInstantiationPattern()
3908 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom())); in getTemplateInstantiationPattern()
3931 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3941 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
3947 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3957 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3967 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3992 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
4003 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
4034 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
4050 FunctionDecl::getTemplateSpecializationKindForInstantiation() const { in getTemplateSpecializationKindForInstantiation()
4084 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
4111 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
4123 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
4129 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
4130 const FunctionDecl *Definition; in isOutOfLine()
4138 const FunctionDecl *Definition; in isOutOfLine()
4146 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
4150 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
4264 unsigned FunctionDecl::getODRHash() const { in getODRHash()
4269 unsigned FunctionDecl::getODRHash() { in getODRHash()
5076 FunctionDecl *
5077 FunctionDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
5083 FunctionDecl *New = new (C, DC) FunctionDecl( in Create()
5090 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
5091 return new (C, ID) FunctionDecl( in CreateDeserialized()