Lines Matching refs:FunctionDecl

307     if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))  in getOutermostFuncOrBlockContext()
373 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
393 LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
552 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
565 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
602 if (auto *FD = dyn_cast<FunctionDecl>(D)) in getStorageClass()
679 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
798 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1154 if (auto *FD = dyn_cast<FunctionDecl>(this)) in isReserved()
1279 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1289 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1349 if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1416 const auto *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1771 } else if (const auto *FD = dyn_cast<FunctionDecl>(DC)) { in printNestedNameSpecifier()
3029 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
3073 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
3081 bool FunctionDecl::isVariadic() const { in isVariadic()
3087 FunctionDecl::DefaultedOrDeletedFunctionInfo *
3088 FunctionDecl::DefaultedOrDeletedFunctionInfo::Create( in Create()
3109 void FunctionDecl::setDefaultedOrDeletedInfo( in setDefaultedOrDeletedInfo()
3118 void FunctionDecl::setDeletedAsWritten(bool D, StringLiteral *Message) { in setDeletedAsWritten()
3131 void FunctionDecl::DefaultedOrDeletedFunctionInfo::setDeletedMessage( in setDeletedMessage()
3142 FunctionDecl::DefaultedOrDeletedFunctionInfo *
3143 FunctionDecl::getDefalutedOrDeletedInfo() const { in getDefalutedOrDeletedInfo()
3148 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
3159 bool FunctionDecl::hasTrivialBody() const { in hasTrivialBody()
3172 bool FunctionDecl::isThisDeclarationInstantiatedFromAFriendDefinition() const { in isThisDeclarationInstantiatedFromAFriendDefinition()
3178 if (const FunctionDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
3195 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
3197 for (const FunctionDecl *FD : redecls()) { in isDefined()
3228 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3240 void FunctionDecl::setBody(Stmt *B) { in setBody()
3247 void FunctionDecl::setIsPureVirtual(bool P) { in setIsPureVirtual()
3260 bool FunctionDecl::isImmediateEscalating() const { in isImmediateEscalating()
3280 bool FunctionDecl::isImmediateFunction() const { in isImmediateFunction()
3298 bool FunctionDecl::isMain() const { in isMain()
3306 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
3333 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
3358 bool FunctionDecl::isReplaceableGlobalAllocationFunction( in isReplaceableGlobalAllocationFunction()
3441 bool FunctionDecl::isInlineBuiltinDeclaration() const { in isInlineBuiltinDeclaration()
3445 const FunctionDecl *Definition; in isInlineBuiltinDeclaration()
3466 bool FunctionDecl::isDestroyingOperatorDelete() const { in isDestroyingOperatorDelete()
3480 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
3484 bool FunctionDecl::isExternC() const { in isExternC()
3488 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
3494 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
3498 bool FunctionDecl::isGlobal() const { in isGlobal()
3517 bool FunctionDecl::isNoReturn() const { in isNoReturn()
3528 bool FunctionDecl::isMemberLikeConstrainedFriend() const { in isMemberLikeConstrainedFriend()
3550 MultiVersionKind FunctionDecl::getMultiVersionKind() const { in getMultiVersionKind()
3564 bool FunctionDecl::isCPUDispatchMultiVersion() const { in isCPUDispatchMultiVersion()
3568 bool FunctionDecl::isCPUSpecificMultiVersion() const { in isCPUSpecificMultiVersion()
3572 bool FunctionDecl::isTargetMultiVersion() const { in isTargetMultiVersion()
3577 bool FunctionDecl::isTargetMultiVersionDefault() const { in isTargetMultiVersionDefault()
3586 bool FunctionDecl::isTargetClonesMultiVersion() const { in isTargetClonesMultiVersion()
3590 bool FunctionDecl::isTargetVersionMultiVersion() const { in isTargetVersionMultiVersion()
3595 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3609 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3624 unsigned FunctionDecl::getBuiltinID(bool ConsiderWrapperFunctions) const { in getBuiltinID()
3684 unsigned FunctionDecl::getNumParams() const { in getNumParams()
3689 void FunctionDecl::setParams(ASTContext &C, in setParams()
3705 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
3723 bool FunctionDecl::hasCXXExplicitFunctionObjectParameter() const { in hasCXXExplicitFunctionObjectParameter()
3727 unsigned FunctionDecl::getNumNonObjectParams() const { in getNumNonObjectParams()
3732 unsigned FunctionDecl::getMinRequiredExplicitArguments() const { in getMinRequiredExplicitArguments()
3737 bool FunctionDecl::hasOneParamOrDefaultArgs() const { in hasOneParamOrDefaultArgs()
3749 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
3757 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
3765 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
3769 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3777 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
3799 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
3806 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
3824 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3849 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
3859 FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { in getFunctionTypeLoc()
3865 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
3881 SourceRange FunctionDecl::getParametersSourceRange() const { in getParametersSourceRange()
3897 SourceRange FunctionDecl::getExceptionSpecSourceRange() const { in getExceptionSpecSourceRange()
3919 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
3971 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
3979 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
3985 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3989 if (isa<FunctionDecl>(ND)) in getTemplatedKind()
4006 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
4008 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
4013 MemberSpecializationInfo *FunctionDecl::getMemberSpecializationInfo() const { in getMemberSpecializationInfo()
4024 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
4025 FunctionDecl *FD, in setInstantiationOfMemberFunction()
4034 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate()
4039 void FunctionDecl::setDescribedFunctionTemplate( in setDescribedFunctionTemplate()
4046 bool FunctionDecl::isFunctionTemplateSpecialization() const { in isFunctionTemplateSpecialization()
4052 void FunctionDecl::setInstantiatedFromDecl(FunctionDecl *FD) { in setInstantiatedFromDecl()
4058 FunctionDecl *FunctionDecl::getInstantiatedFromDecl() const { in getInstantiatedFromDecl()
4059 return dyn_cast_if_present<FunctionDecl>( in getInstantiatedFromDecl()
4063 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
4083 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
4098 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
4104 FunctionDecl *
4105 FunctionDecl::getTemplateInstantiationPattern(bool ForDefinition) const { in getTemplateInstantiationPattern()
4123 const FunctionDecl *FD = nullptr; in getTemplateInstantiationPattern()
4131 return getDefinitionOrSelf(cast<FunctionDecl>(Info->getInstantiatedFrom())); in getTemplateInstantiationPattern()
4154 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
4164 FunctionDecl::getTemplateSpecializationInfo() const { in getTemplateSpecializationInfo()
4170 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
4180 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
4194 void FunctionDecl::setFunctionTemplateSpecialization( in setFunctionTemplateSpecialization()
4218 void FunctionDecl::setDependentTemplateSpecialization( in setDependentTemplateSpecialization()
4229 FunctionDecl::getDependentSpecializationInfo() const { in getDependentSpecializationInfo()
4258 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
4281 FunctionDecl::getTemplateSpecializationKindForInstantiation() const { in getTemplateSpecializationKindForInstantiation()
4325 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
4352 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
4364 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
4370 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
4371 const FunctionDecl *Definition; in isOutOfLine()
4379 const FunctionDecl *Definition; in isOutOfLine()
4387 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
4391 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
4511 unsigned FunctionDecl::getODRHash() const { in getODRHash()
4516 unsigned FunctionDecl::getODRHash() { in getODRHash()
5388 FunctionDecl *
5389 FunctionDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
5395 FunctionDecl *New = new (C, DC) FunctionDecl( in Create()
5402 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
5403 return new (C, ID) FunctionDecl( in CreateDeserialized()
5752 bool clang::IsArmStreamingFunction(const FunctionDecl *FD, in IsArmStreamingFunction()