Lines Matching refs:FunctionDecl
124 if (auto *FD = dyn_cast<FunctionDecl>(D))
125 return getCanonicalForwardRedeclChain<FunctionDecl>(FD);
282 Decl *FindAndMapDefinition(FunctionDecl *D, FunctionDecl *FoundFunction) {
283 const FunctionDecl *Definition = nullptr;
286 return Importer.MapImported(D, const_cast<FunctionDecl *>(Definition));
454 FunctionDecl *FromFD);
458 Error ImportTemplateInformation(FunctionDecl *FromFD, FunctionDecl *ToFD);
460 Error ImportFunctionDeclBody(FunctionDecl *FromFD, FunctionDecl *ToFD);
477 bool IsStructuralMatch(FunctionDecl *From, FunctionDecl *To);
496 ExpectedDecl VisitFunctionDecl(FunctionDecl *D);
681 Expected<FunctionDecl *> FindFunctionTemplateSpecialization(
682 FunctionDecl *FromFD);
687 bool hasAutoReturnTypeDeclaredInside(FunctionDecl *D);
726 FunctionDecl *FromFD) {
728 FunctionDecl::TK_FunctionTemplateSpecialization);
1595 // Check if RecordDecl is in FunctionDecl parameters to avoid infinite loop.
1599 // after the FunctionDecl is created. See
1602 FunctionDecl *FunDecl;
1603 if (isa<RecordDecl>(D) && (FunDecl = dyn_cast<FunctionDecl>(OrigDC)) &&
2141 bool ASTNodeImporter::IsStructuralMatch(FunctionDecl *From, FunctionDecl *To) {
2984 FunctionDecl *FromFD, FunctionDecl *ToFD) {
2986 case FunctionDecl::TK_NonTemplate:
2987 case FunctionDecl::TK_FunctionTemplate:
2990 case FunctionDecl::TK_MemberSpecialization: {
2993 if (Expected<FunctionDecl *> InstFDOrErr =
3008 case FunctionDecl::TK_FunctionTemplateSpecialization: {
3039 case FunctionDecl::TK_DependentFunctionTemplateSpecialization: {
3068 Expected<FunctionDecl *>
3069 ASTNodeImporter::FindFunctionTemplateSpecialization(FunctionDecl *FromFD) {
3083 Error ASTNodeImporter::ImportFunctionDeclBody(FunctionDecl *FromFD,
3084 FunctionDecl *ToFD) {
3106 bool ASTNodeImporter::hasAutoReturnTypeDeclaredInside(FunctionDecl *D) {
3134 ExpectedDecl ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) {
3157 FunctionDecl *FoundByLookup = nullptr;
3166 FunctionDecl::TK_FunctionTemplateSpecialization) {
3170 if (FunctionDecl *FoundFunction = *FoundFunctionOrErr) {
3186 if (auto *FoundFunction = dyn_cast<FunctionDecl>(FoundDecl)) {
3260 // FunctionDecl with a simplified function type and update it only after the
3268 // To avoid an infinite recursion when importing, create the FunctionDecl
3276 // FunctionDecl that we are importing the FunctionProtoType for.
3277 // To avoid an infinite recursion when importing, create the FunctionDecl
3311 FunctionDecl *ToFunction = nullptr;
3335 Err, const_cast<FunctionDecl *>(FromDtor->getOperatorDelete()));
3383 auto *Recent = const_cast<FunctionDecl *>(
5839 FunctionDecl *TemplatedFD;