Lines Matching refs:UD
11530 UsingDirectiveDecl *&UD, bool IsNested) {
11667 UD = UsingDirectiveDecl::Create(Context, Parent,
11674 UD->setImplicit();
11675 Parent->addDecl(UD);
12267 NamedDecl *UD =
12272 if (UD)
12273 PushOnScopeChains(UD, S, /*AddToContext*/ false);
12275 return UD;
12313 auto *UD =
12316 if (UD)
12317 PushOnScopeChains(UD, S, /*AddToContext*/ false);
12319 return UD;
12797 UsingDecl *UD =
12800 UD->setAccess(AS);
12801 CurContext->addDecl(UD);
12802 ProcessDeclAttributeList(S, UD, AttrList);
12803 UD->setInvalidDecl(Invalid);
12804 return UD;
12944 UsingDecl *UD = BuildValid();
12952 if (CheckInheritingConstructorUsingDecl(UD))
12953 return UD;
12958 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl))
12959 BuildUsingShadowDecl(S, UD, *I, PrevDecl);
12962 return UD;
12995 UsingEnumDecl *UD = UsingEnumDecl::Create(Context, CurContext, UsingLoc,
12997 UD->setAccess(AS);
12998 CurContext->addDecl(UD);
13001 UD->setInvalidDecl();
13002 return UD;
13014 if (!CheckUsingShadowDecl(UD, EC, Previous, PrevDecl))
13015 BuildUsingShadowDecl(S, UD, EC, PrevDecl);
13018 return UD;
13034 bool Sema::CheckInheritingConstructorUsingDecl(UsingDecl *UD) {
13035 assert(!UD->hasTypename() && "expecting a constructor name");
13037 const Type *SourceType = UD->getQualifier()->getAsType();
13047 Diag(UD->getUsingLoc(),
13049 << UD->getNameInfo().getSourceRange()
13051 UD->setInvalidDecl();
13105 if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) {
13106 DTypename = UD->hasTypename();
13107 DQual = UD->getQualifier();
13108 } else if (UnresolvedUsingValueDecl *UD
13111 DQual = UD->getQualifier();
13112 } else if (UnresolvedUsingTypenameDecl *UD
13115 DQual = UD->getQualifier();
13140 const LookupResult *R, const UsingDecl *UD) {
13142 assert(bool(NamedContext) == (R || UD) && !(R && UD) &&
13152 else if (UD && UD->shadow_size() == 1)
13153 EC = dyn_cast<EnumConstantDecl>(UD->shadow_begin()->getTargetDecl());