Home | History | Annotate | Download | only in Sema

Lines Matching refs:oldDecl

2253                                      const ParmVarDecl *oldDecl,
2260 if (CDA && !oldDecl->hasAttr<CarriesDependencyAttr>()) {
2266 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl();
2268 FirstFD->getParamDecl(oldDecl->getFunctionScopeIndex());
2273 if (!oldDecl->hasAttrs())
2282 for (const auto *I : oldDecl->specific_attrs<InheritableParamAttr>()) {
5014 static void checkDLLAttributeRedeclaration(Sema &S, NamedDecl *OldDecl,
5017 if (TemplateDecl *OldTD = dyn_cast<TemplateDecl>(OldDecl))
5018 OldDecl = OldTD->getTemplatedDecl();
5022 if (!OldDecl || !NewDecl)
5025 const DLLImportAttr *OldImportAttr = OldDecl->getAttr<DLLImportAttr>();
5026 const DLLExportAttr *OldExportAttr = OldDecl->getAttr<DLLExportAttr>();
5040 if (AddsAttr && !IsSpecialization && !OldDecl->isImplicit()) {
5044 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5064 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5066 OldDecl->dropAttr<DLLImportAttr>();
7648 NamedDecl *OldDecl = nullptr;
7661 OldDecl = Candidate;
7664 switch (CheckOverload(S, NewFD, Previous, OldDecl,
7686 OverloadedDecl = OldDecl;
7705 OldDecl = Previous.getFoundDecl();
7709 if (OldDecl->hasAttr<OverloadableAttr>()) {
7717 if (IsOverload(NewFD, cast<FunctionDecl>(OldDecl), false)) {
7719 OldDecl = nullptr;
7739 if (OldDecl)
7740 OldMD = dyn_cast<CXXMethodDecl>(OldDecl->getAsFunction());
7764 // NewFD and OldDecl represent declarations that need to be
7766 if (MergeFunctionDecl(NewFD, OldDecl, S, MergeTypeWithPrevious)) {
7772 Previous.addDecl(OldDecl);
7775 = dyn_cast<FunctionTemplateDecl>(OldDecl)) {
7796 NewFD->setPreviousDeclaration(cast<FunctionDecl>(OldDecl));
7805 CXXMethodDecl *oldMethod = cast<CXXMethodDecl>(OldDecl);