Lines Matching refs:NewDecl
5250 NamedDecl *NewDecl, in checkDLLAttributeRedeclaration() argument
5254 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) in checkDLLAttributeRedeclaration()
5255 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
5257 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
5262 const DLLImportAttr *NewImportAttr = NewDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
5263 const DLLExportAttr *NewExportAttr = NewDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
5291 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
5292 << NewDecl in checkDLLAttributeRedeclaration()
5296 NewDecl->setInvalidDecl(); in checkDLLAttributeRedeclaration()
5306 if (const auto *VD = dyn_cast<VarDecl>(NewDecl)) in checkDLLAttributeRedeclaration()
5310 else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
5317 !NewDecl->isLocalExternDecl() && !IsQualifiedFriend) { in checkDLLAttributeRedeclaration()
5318 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5320 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
5324 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
5329 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
5330 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5332 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()