Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:DC

161   const DeclContext *DC = D.getDeclContext();
162 if (auto *CD = dyn_cast<CapturedDecl>(DC))
163 DC = cast<DeclContext>(CD->getNonClosureContext());
164 if (const auto *FD = dyn_cast<FunctionDecl>(DC))
166 else if (const auto *BD = dyn_cast<BlockDecl>(DC))
168 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC))
241 const Decl *DC = cast<Decl>(D.getDeclContext());
245 if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC)) {
246 DC = DC->getNonClosureContext();
248 if (!DC)
253 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC))
255 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC))
257 else if (const auto *FD = dyn_cast<FunctionDecl>(DC))
262 assert(isa<ObjCMethodDecl>(DC) && "unexpected parent code decl");