Home | History | Annotate | Download | only in Sema

Lines Matching refs:NewDecl

2252 static void mergeParamDeclAttributes(ParmVarDecl *newDecl,
2259 const CarriesDependencyAttr *CDA = newDecl->getAttr<CarriesDependencyAttr>();
2276 bool foundAny = newDecl->hasAttrs();
2280 if (!foundAny) newDecl->setAttrs(AttrVec());
2283 if (!DeclHasAttr(newDecl, I)) {
2287 newDecl->addAttr(newAttr);
2292 if (!foundAny) newDecl->dropAttrs();
5015 NamedDecl *NewDecl,
5019 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl))
5020 NewDecl = NewTD->getTemplatedDecl();
5022 if (!OldDecl || !NewDecl)
5027 const DLLImportAttr *NewImportAttr = NewDecl->getAttr<DLLImportAttr>();
5028 const DLLExportAttr *NewExportAttr = NewDecl->getAttr<DLLExportAttr>();
5041 S.Diag(NewDecl->getLocation(), diag::err_attribute_dll_redeclaration)
5042 << NewDecl
5045 NewDecl->setInvalidDecl();
5053 if (const auto *VD = dyn_cast<VarDecl>(NewDecl))
5057 else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl))
5061 S.Diag(NewDecl->getLocation(),
5063 << NewDecl << OldImportAttr;
5067 NewDecl->dropAttr<DLLImportAttr>();