Lines Matching defs:ND
880 if (const auto *ND = dyn_cast<NamespaceDecl>(DC)) {
883 if (ND->isAnonymousNamespace()) {
885 Diag(ND->getLocation(), diag::note_anonymous_namespace);
896 if (!getLangOpts().HLSL && !DeferredExportedNamespaces.insert(ND).second)
944 if (auto *ND = dyn_cast<NamedDecl>(D)) {
947 HasName = (bool)ND->getDeclName();
948 if (HasName && ND->getFormalLinkage() == Linkage::Internal) {
949 S.Diag(ND->getLocation(), diag::err_export_internal) << ND;
978 if (auto *ND = dyn_cast<NamedDecl>(D)) {
979 if (!ND->getDeclName()) {
980 S.Diag(ND->getLocation(), diag::err_export_anon_ns_internal);