Lines Matching refs:UD
7338 UsingDirectiveDecl *&UD) { in ActOnStartNamespaceDef() argument
7453 UD = UsingDirectiveDecl::Create(Context, Parent, in ActOnStartNamespaceDef()
7460 UD->setImplicit(); in ActOnStartNamespaceDef()
7461 Parent->addDecl(UD); in ActOnStartNamespaceDef()
7862 NamedDecl *UD = BuildUsingDeclaration(S, AS, UsingLoc, SS, in ActOnUsingDeclaration() local
7866 if (UD) in ActOnUsingDeclaration()
7867 PushOnScopeChains(UD, S, /*AddToContext*/ false); in ActOnUsingDeclaration()
7869 return UD; in ActOnUsingDeclaration()
8042 UsingDecl *UD, in BuildUsingShadowDecl() argument
8060 UD->getQualifier()->getAsRecordDecl()); in BuildUsingShadowDecl()
8062 Context, CurContext, UD->getLocation(), UD, Orig, IsVirtualBase); in BuildUsingShadowDecl()
8064 Shadow = UsingShadowDecl::Create(Context, CurContext, UD->getLocation(), UD, in BuildUsingShadowDecl()
8067 UD->addShadowDecl(Shadow); in BuildUsingShadowDecl()
8069 Shadow->setAccess(UD->getAccess()); in BuildUsingShadowDecl()
8070 if (Orig->isInvalidDecl() || UD->isInvalidDecl()) in BuildUsingShadowDecl()
8317 UsingDecl *UD = in BuildUsingDeclaration() local
8320 UD->setAccess(AS); in BuildUsingDeclaration()
8321 CurContext->addDecl(UD); in BuildUsingDeclaration()
8322 UD->setInvalidDecl(Invalid); in BuildUsingDeclaration()
8323 return UD; in BuildUsingDeclaration()
8448 UsingDecl *UD = BuildValid(); in BuildUsingDeclaration() local
8456 if (CheckInheritingConstructorUsingDecl(UD)) in BuildUsingDeclaration()
8457 return UD; in BuildUsingDeclaration()
8462 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
8463 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
8466 return UD; in BuildUsingDeclaration()
8470 bool Sema::CheckInheritingConstructorUsingDecl(UsingDecl *UD) { in CheckInheritingConstructorUsingDecl() argument
8471 assert(!UD->hasTypename() && "expecting a constructor name"); in CheckInheritingConstructorUsingDecl()
8473 const Type *SourceType = UD->getQualifier()->getAsType(); in CheckInheritingConstructorUsingDecl()
8483 Diag(UD->getUsingLoc(), in CheckInheritingConstructorUsingDecl()
8485 << UD->getNameInfo().getSourceRange() in CheckInheritingConstructorUsingDecl()
8487 UD->setInvalidDecl(); in CheckInheritingConstructorUsingDecl()
8522 if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) { in CheckUsingDeclRedeclaration() local
8523 DTypename = UD->hasTypename(); in CheckUsingDeclRedeclaration()
8524 DQual = UD->getQualifier(); in CheckUsingDeclRedeclaration()
8525 } else if (UnresolvedUsingValueDecl *UD in CheckUsingDeclRedeclaration() local
8528 DQual = UD->getQualifier(); in CheckUsingDeclRedeclaration()
8529 } else if (UnresolvedUsingTypenameDecl *UD in CheckUsingDeclRedeclaration() local
8532 DQual = UD->getQualifier(); in CheckUsingDeclRedeclaration()