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