Lines Matching refs:FunctionDecl
298 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
359 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
379 mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
538 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
551 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
614 } else if (const FunctionDecl *Function = D->getAsFunction()) { in getLVForNamespaceScopeDecl()
632 const FunctionDecl *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
735 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1080 if (const FunctionDecl *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1090 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
1127 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { in getLVForLocalDecl()
1193 const FunctionDecl *FD = cast<FunctionDecl>(OuterD); in getLVForLocalDecl()
1406 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in printQualifiedName()
1507 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(this)) in declarationReplaces()
2334 void FunctionDecl::getNameForDiagnostic( in getNameForDiagnostic()
2343 bool FunctionDecl::isVariadic() const { in isVariadic()
2349 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
2360 bool FunctionDecl::hasTrivialBody() const in hasTrivialBody()
2374 bool FunctionDecl::isDefined(const FunctionDecl *&Definition) const { in isDefined()
2386 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
2396 void FunctionDecl::setBody(Stmt *B) { in setBody()
2402 void FunctionDecl::setPure(bool P) { in setPure()
2415 bool FunctionDecl::isMain() const { in isMain()
2423 bool FunctionDecl::isMSVCRTEntryPoint() const { in isMSVCRTEntryPoint()
2450 bool FunctionDecl::isReservedGlobalPlacementOperator() const { in isReservedGlobalPlacementOperator()
2473 bool FunctionDecl::isReplaceableGlobalAllocationFunction() const { in isReplaceableGlobalAllocationFunction()
2514 LanguageLinkage FunctionDecl::getLanguageLinkage() const { in getLanguageLinkage()
2518 bool FunctionDecl::isExternC() const { in isExternC()
2522 bool FunctionDecl::isInExternCContext() const { in isInExternCContext()
2526 bool FunctionDecl::isInExternCXXContext() const { in isInExternCXXContext()
2530 bool FunctionDecl::isGlobal() const { in isGlobal()
2550 bool FunctionDecl::isNoReturn() const { in isNoReturn()
2557 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
2571 const FunctionDecl *FunctionDecl::getCanonicalDecl() const { in getCanonicalDecl()
2575 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
2586 unsigned FunctionDecl::getBuiltinID() const { in getBuiltinID()
2636 unsigned FunctionDecl::getNumParams() const { in getNumParams()
2641 void FunctionDecl::setParams(ASTContext &C, in setParams()
2653 void FunctionDecl::setDeclsInPrototypeScope(ArrayRef<NamedDecl *> NewDecls) { in setDeclsInPrototypeScope()
2679 unsigned FunctionDecl::getMinRequiredArguments() const { in getMinRequiredArguments()
2695 bool FunctionDecl::isMSExternInline() const { in isMSExternInline()
2702 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
2710 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC()
2714 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
2722 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99()
2744 bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { in doesDeclarationForceExternallyVisibleDefinition()
2751 const FunctionDecl *Definition; in doesDeclarationForceExternallyVisibleDefinition()
2766 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
2794 const FunctionDecl *Prev = this; in doesDeclarationForceExternallyVisibleDefinition()
2804 SourceRange FunctionDecl::getReturnTypeSourceRange() const { in getReturnTypeSourceRange()
2824 bool FunctionDecl::hasUnusedResultAttr() const { in hasUnusedResultAttr()
2853 bool FunctionDecl::isInlineDefinitionExternallyVisible() const { in isInlineDefinitionExternallyVisible()
2901 OverloadedOperatorKind FunctionDecl::getOverloadedOperator() const { in getOverloadedOperator()
2910 const IdentifierInfo *FunctionDecl::getLiteralIdentifier() const { in getLiteralIdentifier()
2917 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
2933 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
2935 return cast<FunctionDecl>(Info->getInstantiatedFrom()); in getInstantiatedFromMemberFunction()
2941 FunctionDecl::setInstantiationOfMemberFunction(ASTContext &C, in setInstantiationOfMemberFunction()
2942 FunctionDecl *FD, in setInstantiationOfMemberFunction()
2951 bool FunctionDecl::isImplicitlyInstantiable() const { in isImplicitlyInstantiable()
2975 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable()
2990 bool FunctionDecl::isTemplateInstantiation() const { in isTemplateInstantiation()
3003 FunctionDecl *FunctionDecl::getTemplateInstantiationPattern() const { in getTemplateInstantiationPattern()
3044 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3053 FunctionDecl *FunctionDecl::getClassScopeSpecializationPattern() const { in getClassScopeSpecializationPattern()
3058 FunctionDecl::getTemplateSpecializationArgs() const { in getTemplateSpecializationArgs()
3068 FunctionDecl::getTemplateSpecializationArgsAsWritten() const { in getTemplateSpecializationArgsAsWritten()
3078 FunctionDecl::setFunctionTemplateSpecialization(ASTContext &C, in setFunctionTemplateSpecialization()
3099 FunctionDecl::setDependentTemplateSpecialization(ASTContext &Context, in setDependentTemplateSpecialization()
3134 TemplateSpecializationKind FunctionDecl::getTemplateSpecializationKind() const { in getTemplateSpecializationKind()
3151 FunctionDecl::setTemplateSpecializationKind(TemplateSpecializationKind TSK, in setTemplateSpecializationKind()
3172 SourceLocation FunctionDecl::getPointOfInstantiation() const { in getPointOfInstantiation()
3184 bool FunctionDecl::isOutOfLine() const { in isOutOfLine()
3190 if (FunctionDecl *FD = getInstantiatedFromMemberFunction()) { in isOutOfLine()
3191 const FunctionDecl *Definition; in isOutOfLine()
3199 const FunctionDecl *Definition; in isOutOfLine()
3207 SourceRange FunctionDecl::getSourceRange() const { in getSourceRange()
3211 unsigned FunctionDecl::getMemoryFunctionKind() const { in getMemoryFunctionKind()
3847 FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3855 FunctionDecl *New = in Create()
3856 new (C, DC) FunctionDecl(Function, C, DC, StartLoc, NameInfo, T, TInfo, in Create()
3862 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3863 return new (C, ID) FunctionDecl(Function, C, nullptr, SourceLocation(), in CreateDeserialized()