Lines Matching refs:Shadow
7239 ConstructorUsingShadowDecl *Shadow)
7247 for (auto *D : Shadow->redecls()) {
7269 !Shadow->isInvalidDecl()) {
7272 << Shadow->getTargetDecl();
7285 Shadow->setInvalidDecl();
12433 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(*I))
12434 PrevShadow = Shadow;
12540 UsingShadowDecl *Shadow;
12546 Shadow = ConstructorUsingShadowDecl::Create(
12549 Shadow = UsingShadowDecl::Create(Context, CurContext, BUD->getLocation(),
12552 BUD->addShadowDecl(Shadow);
12554 Shadow->setAccess(BUD->getAccess());
12556 Shadow->setInvalidDecl();
12558 Shadow->setPreviousDecl(PrevDecl);
12561 PushOnScopeChains(Shadow, S);
12563 CurContext->addDecl(Shadow);
12566 return Shadow;
12569 void Sema::HideUsingShadowDecl(Scope *S, UsingShadowDecl *Shadow) {
12570 if (Shadow->getDeclName().getNameKind() ==
12572 cast<CXXRecordDecl>(Shadow->getDeclContext())->removeConversion(Shadow);
12575 Shadow->getDeclContext()->removeDecl(Shadow);
12579 S->RemoveDecl(Shadow);
12580 IdResolver.RemoveDecl(Shadow);
12584 Shadow->getIntroducer()->removeShadowDecl(Shadow);
12586 // TODO: complain somehow if Shadow was used. It shouldn't
13945 ConstructorUsingShadowDecl *Shadow) {
13946 CXXRecordDecl *Derived = Shadow->getParent();
13947 SourceLocation UsingLoc = Shadow->getLocation();
13971 InheritedConstructorInfo ICI(*this, Loc, Shadow);
13984 InheritedConstructor(Shadow, BaseCtor),
13986 if (Shadow->isInvalidDecl())
14057 ConstructorUsingShadowDecl *Shadow =
14067 InheritedConstructorInfo ICI(*this, CurrentLocation, Shadow);
14068 CXXRecordDecl *RD = Shadow->getParent();
14069 SourceLocation InitLoc = Shadow->getLocation();
15964 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) {
15965 Constructor = findInheritingConstructor(ConstructLoc, Constructor, Shadow);