Lines Matching refs:NewDecl

6925                                            NamedDecl *NewDecl,  in checkDLLAttributeRedeclaration()  argument
6928 if (OldDecl->isInvalidDecl() || NewDecl->isInvalidDecl()) in checkDLLAttributeRedeclaration()
6938 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
6939 NewDecl = NewTD->getTemplatedDecl(); in checkDLLAttributeRedeclaration()
6943 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
6948 const DLLImportAttr *NewImportAttr = NewDecl->getAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
6949 const DLLExportAttr *NewExportAttr = NewDecl->getAttr<DLLExportAttr>(); in checkDLLAttributeRedeclaration()
6983 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
6984 << NewDecl in checkDLLAttributeRedeclaration()
6988 NewDecl->setInvalidDecl(); in checkDLLAttributeRedeclaration()
7000 if (const auto *VD = dyn_cast<VarDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7006 } else if (const auto *FD = dyn_cast<FunctionDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7014 !NewDecl->isLocalExternDecl() && !IsQualifiedFriend) { in checkDLLAttributeRedeclaration()
7016 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7018 << NewDecl; in checkDLLAttributeRedeclaration()
7020 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7021 NewDecl->addAttr( in checkDLLAttributeRedeclaration()
7024 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7026 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
7030 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7036 NewDecl->dropAttr<DLLImportAttr>(); in checkDLLAttributeRedeclaration()
7037 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7039 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
7046 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewDecl)) { in checkDLLAttributeRedeclaration()
7053 NewDecl->addAttr(NewAttr); in checkDLLAttributeRedeclaration()