Lines Matching defs:UD
6827 UsingDirectiveDecl* UD
6835 UD->setImplicit();
6836 Parent->addDecl(UD);
7235 NamedDecl *UD = BuildUsingDeclaration(S, AS, UsingLoc, SS,
7239 if (UD)
7240 PushOnScopeChains(UD, S, /*AddToContext*/ false);
7242 return UD;
7394 UsingDecl *UD,
7407 UD->getLocation(), UD, Target);
7408 UD->addShadowDecl(Shadow);
7410 Shadow->setAccess(UD->getAccess());
7411 if (Orig->isInvalidDecl() || UD->isInvalidDecl())
7642 UsingDecl *UD =
7645 UD->setAccess(AS);
7646 CurContext->addDecl(UD);
7647 UD->setInvalidDecl(Invalid);
7648 return UD;
7658 UsingDecl *UD = BuildValid();
7659 CheckInheritingConstructorUsingDecl(UD);
7660 return UD;
7715 UsingDecl *UD = BuildValid();
7716 CheckInheritingConstructorUsingDecl(UD);
7717 return UD;
7761 UsingDecl *UD = BuildValid();
7764 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl))
7765 BuildUsingShadowDecl(S, UD, *I, PrevDecl);
7768 return UD;
7772 bool Sema::CheckInheritingConstructorUsingDecl(UsingDecl *UD) {
7773 assert(!UD->hasTypename() && "expecting a constructor name");
7775 const Type *SourceType = UD->getQualifier()->getAsType();
7785 Diag(UD->getUsingLoc(),
7787 << UD->getNameInfo().getSourceRange()
7789 UD->setInvalidDecl();
7824 if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) {
7825 DTypename = UD->hasTypename();
7826 DQual = UD->getQualifier();
7827 } else if (UnresolvedUsingValueDecl *UD
7830 DQual = UD->getQualifier();
7831 } else if (UnresolvedUsingTypenameDecl *UD
7834 DQual = UD->getQualifier();