Lines Matching defs:TargetDecl
38 // A function that helps to tell whether a TargetDecl in a UsingDecl will be
41 static bool shouldCheckDecl(const Decl *TargetDecl) {
42 return isa<RecordDecl>(TargetDecl) || isa<ClassTemplateDecl>(TargetDecl) ||
43 isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl) ||
44 isa<FunctionTemplateDecl>(TargetDecl) || isa<EnumDecl>(TargetDecl) ||
45 isa<EnumConstantDecl>(TargetDecl);
113 const auto *TargetDecl = UsingShadow->getTargetDecl()->getCanonicalDecl();
114 if (shouldCheckDecl(TargetDecl)) {
115 Context.UsingTargetDecls.insert(TargetDecl);
116 UsingTargetDeclsCache.insert(TargetDecl);