Lines Matching refs:NewDecl

6484                                            NamedDecl *NewDecl,  in checkDLLAttributeRedeclaration()  argument
6487 if (OldDecl->isInvalidDecl() || NewDecl->isInvalidDecl()) in checkDLLAttributeRedeclaration()
6497 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6498 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
6502 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
6507 const DLLImportAttr *NewImportAttr = NewDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6508 const DLLExportAttr *NewExportAttr = NewDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
6542 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
6543 << NewDecl in checkDLLAttributeRedeclaration()
6547 NewDecl->setInvalidDecl(); in checkDLLAttributeRedeclaration()
6559 if (const auto *VD = dyn_cast<VarDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6565 } else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6573 !NewDecl->isLocalExternDecl() && !IsQualifiedFriend) { in checkDLLAttributeRedeclaration()
6575 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
6577 << NewDecl; in checkDLLAttributeRedeclaration()
6579 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6580 NewDecl->addAttr( in checkDLLAttributeRedeclaration()
6583 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
6585 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
6589 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6595 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6596 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
6598 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
6605 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6612 NewDecl->addAttr(NewAttr); in checkDLLAttributeRedeclaration()