Lines Matching defs:SD
311 /// \param SD Declaration checked for nested-name-specifier.
314 bool Sema::isAcceptableNestedNameSpecifier(const NamedDecl *SD,
316 if (!SD)
319 SD = SD->getUnderlyingDecl();
322 if (isa<NamespaceDecl>(SD))
325 if (!isa<TypeDecl>(SD))
330 QualType T = Context.getTypeDeclType(cast<TypeDecl>(SD));
333 if (const TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(SD)) {
342 } else if (isa<RecordDecl>(SD)) {
344 } else if (isa<EnumDecl>(SD)) {
651 NamedDecl *SD =
654 bool AcceptSpec = isAcceptableNestedNameSpecifier(SD, &IsExtension);
682 OuterDecl->getCanonicalDecl() != SD->getCanonicalDecl() &&
683 (!isa<TypeDecl>(OuterDecl) || !isa<TypeDecl>(SD) ||
686 Context.getTypeDeclType(cast<TypeDecl>(SD))))) {
693 Diag(SD->getLocation(), diag::note_ambig_member_ref_object_type)
702 if (auto *TD = dyn_cast_or_null<TypedefNameDecl>(SD))
711 DiagnoseUseOfDecl(SD, IdInfo.CCLoc);
713 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) {
718 if (NamespaceAliasDecl *Alias = dyn_cast<NamespaceAliasDecl>(SD)) {
724 Context.getTypeDeclType(cast<TypeDecl>(SD->getUnderlyingDecl()));