reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2996 SmallVector<Decl *, 2> Redecls = getCanonicalForwardRedeclChain(D); 3000 for (; RedeclIt != Redecls.end() && *RedeclIt != D; ++RedeclIt) { 3005 assert(*RedeclIt == D); 3012 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) 3018 FunctionTemplateDecl *FromFT = D->getDescribedFunctionTemplate(); 3025 if (D->getTemplatedKind() == 3027 auto FoundFunctionOrErr = FindFunctionTemplateSpecialization(D); 3031 if (Decl *Def = FindAndMapDefinition(D, FoundFunction)) 3047 if (!hasSameVisibilityContext(FoundFunction, D)) 3050 if (IsStructuralMatch(D, FoundFunction)) { 3051 if (Decl *Def = FindAndMapDefinition(D, FoundFunction)) 3065 << Name << D->getType() << FoundFunction->getType(); 3090 if (D->getLexicalDeclContext() == D->getDeclContext()) { 3090 if (D->getLexicalDeclContext() == D->getDeclContext()) { 3091 if (!D->doesThisDeclarationHaveABody()) { 3093 D->getDescribedFunctionTemplate()) { 3102 return Importer.MapImported(D, FoundByLookup); 3113 if (Error Err = ImportDeclarationNameLoc(D->getNameInfo(), NameInfo)) 3116 QualType FromTy = D->getType(); 3119 if (const auto *FromFPT = D->getType()->getAs<FunctionProtoType>()) { 3140 FromTy, D->getTypeSourceInfo(), D->getInnerLocStart(), 3140 FromTy, D->getTypeSourceInfo(), D->getInnerLocStart(), 3141 D->getQualifierLoc(), D->getEndLoc())) 3141 D->getQualifierLoc(), D->getEndLoc())) 3148 for (auto P : D->parameters()) { 3157 if (auto *FromConstructor = dyn_cast<CXXConstructorDecl>(D)) { 3166 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC), 3171 D->isInlineSpecified(), D->isImplicit(), D->getConstexprKind())) 3171 D->isInlineSpecified(), D->isImplicit(), D->getConstexprKind())) 3171 D->isInlineSpecified(), D->isImplicit(), D->getConstexprKind())) 3173 } else if (CXXDestructorDecl *FromDtor = dyn_cast<CXXDestructorDecl>(D)) { 3187 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC), 3188 ToInnerLocStart, NameInfo, T, TInfo, D->isInlineSpecified(), 3189 D->isImplicit(), D->getConstexprKind())) 3189 D->isImplicit(), D->getConstexprKind())) 3196 dyn_cast<CXXConversionDecl>(D)) { 3205 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC), 3206 ToInnerLocStart, NameInfo, T, TInfo, D->isInlineSpecified(), 3209 D->getConstexprKind(), SourceLocation())) 3211 } else if (auto *Method = dyn_cast<CXXMethodDecl>(D)) { 3213 ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC), 3215 Method->isInlineSpecified(), D->getConstexprKind(), 3220 ToFunction, D, Importer.getToContext(), DC, ToInnerLocStart, 3221 NameInfo, T, TInfo, D->getStorageClass(), D->isInlineSpecified(), 3221 NameInfo, T, TInfo, D->getStorageClass(), D->isInlineSpecified(), 3222 D->hasWrittenPrototype(), D->getConstexprKind())) 3222 D->hasWrittenPrototype(), D->getConstexprKind())) 3239 ToFunction->setAccess(D->getAccess()); 3241 ToFunction->setVirtualAsWritten(D->isVirtualAsWritten()); 3242 ToFunction->setTrivial(D->isTrivial()); 3243 ToFunction->setPure(D->isPure()); 3244 ToFunction->setDefaulted(D->isDefaulted()); 3245 ToFunction->setExplicitlyDefaulted(D->isExplicitlyDefaulted()); 3246 ToFunction->setDeletedAsWritten(D->isDeletedAsWritten()); 3268 if (ExpectedType TyOrErr = import(D->getType())) 3282 if (auto *FromConstructor = dyn_cast<CXXConstructorDecl>(D)) { 3298 if (D->doesThisDeclarationHaveABody()) { 3299 Error Err = ImportFunctionDeclBody(D, ToFunction); 3308 if (Error Err = ImportTemplateInformation(D, ToFunction)) 3311 bool IsFriend = D->isInIdentifierNamespace(Decl::IDNS_OrdinaryFriend); 3314 if (D->getDeclContext()->containsDeclAndLoad(D)) 3314 if (D->getDeclContext()->containsDeclAndLoad(D)) 3316 if (DC != LexicalDC && D->getLexicalDeclContext()->containsDeclAndLoad(D)) 3316 if (DC != LexicalDC && D->getLexicalDeclContext()->containsDeclAndLoad(D)) 3329 if (auto *FromCXXMethod = dyn_cast<CXXMethodDecl>(D))