Lines Matching refs:NewDecl

6950                                            NamedDecl *NewDecl,  in checkDLLAttributeRedeclaration()  argument
6953 if (OldDecl->isInvalidDecl() || NewDecl->isInvalidDecl()) in checkDLLAttributeRedeclaration()
6963 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6964 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
6968 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
6973 const DLLImportAttr *NewImportAttr = NewDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6974 const DLLExportAttr *NewExportAttr = NewDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
7008 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
7009 << NewDecl in checkDLLAttributeRedeclaration()
7013 NewDecl->setInvalidDecl(); in checkDLLAttributeRedeclaration()
7025 if (const auto *VD = dyn_cast<VarDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7031 } else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7039 !NewDecl->isLocalExternDecl() && !IsQualifiedFriend) { in checkDLLAttributeRedeclaration()
7043 NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7046 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7048 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7050 << NewDecl; in checkDLLAttributeRedeclaration()
7052 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7053 NewDecl->addAttr(DLLExportAttr::CreateImplicit( in checkDLLAttributeRedeclaration()
7060 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7062 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
7066 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7072 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7073 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7075 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
7082 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7089 NewDecl->addAttr(NewAttr); in checkDLLAttributeRedeclaration()