Lines Matching refs:UD
6399 UsingDirectiveDecl* UD
6407 UD->setImplicit();
6408 Parent->addDecl(UD);
6811 NamedDecl *UD = BuildUsingDeclaration(S, AS, UsingLoc, SS,
6815 if (UD)
6816 PushOnScopeChains(UD, S, /*AddToContext*/ false);
6818 return UD;
6973 UsingDecl *UD,
6985 UD->getLocation(), UD, Target);
6986 UD->addShadowDecl(Shadow);
6988 Shadow->setAccess(UD->getAccess());
6989 if (Orig->isInvalidDecl() || UD->isInvalidDecl())
7155 UsingDecl *UD = cast<UsingDecl>(D);
7158 UD->setInvalidDecl();
7159 return UD;
7164 if (CheckInheritingConstructorUsingDecl(UD))
7165 UD->setInvalidDecl();
7166 return UD;
7212 UD->setInvalidDecl();
7213 return UD;
7218 UD->setInvalidDecl();
7219 return UD;
7229 UD->setInvalidDecl();
7230 return UD;
7239 UD->setInvalidDecl();
7240 return UD;
7249 UD->setInvalidDecl();
7250 return UD;
7254 if (!CheckUsingShadowDecl(UD, *I, Previous))
7255 BuildUsingShadowDecl(S, UD, *I);
7258 return UD;
7262 bool Sema::CheckInheritingConstructorUsingDecl(UsingDecl *UD) {
7263 assert(!UD->hasTypename() && "expecting a constructor name");
7265 const Type *SourceType = UD->getQualifier()->getAsType();
7284 Diag(UD->getUsingLoc(),
7286 << UD->getNameInfo().getSourceRange()
7323 if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) {
7324 DTypename = UD->hasTypename();
7325 DQual = UD->getQualifier();
7326 } else if (UnresolvedUsingValueDecl *UD
7329 DQual = UD->getQualifier();
7330 } else if (UnresolvedUsingTypenameDecl *UD
7333 DQual = UD->getQualifier();