Lines Matching defs:Parents
372 auto Parents = Context.getParents(Loc);
374 if (!Parents.empty()) {
379 if (const auto *NSL = Parents[0].get<NestedNameSpecifierLoc>()) {
384 if (const auto *TL = Parents[0].get<TypeLoc>())
483 auto Parents = Context.getParents(Node);
485 if (Parents.size() != 1)
487 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind()))
488 return Parents[0].template get<Decl>();
489 return getClosestAncestorDecl(Parents[0]);
495 auto Parents = Context.getParents(Loc);
497 if (Parents.size() != 1)
499 return Parents[0].get<TypeLoc>();