Lines Matching full:parents
373 auto Parents = Context.getParents(Loc); in VisitTypeLoc() local
375 if (!Parents.empty()) { in VisitTypeLoc()
380 if (const auto *NSL = Parents[0].get<NestedNameSpecifierLoc>()) { in VisitTypeLoc()
385 if (const auto *TL = Parents[0].get<TypeLoc>()) in VisitTypeLoc()
484 auto Parents = Context.getParents(Node); in getClosestAncestorDecl() local
485 // FIXME: figure out how to handle it when there are multiple parents. in getClosestAncestorDecl()
486 if (Parents.size() != 1) in getClosestAncestorDecl()
488 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()
489 return Parents[0].template get<Decl>(); in getClosestAncestorDecl()
490 return getClosestAncestorDecl(Parents[0]); in getClosestAncestorDecl()
496 auto Parents = Context.getParents(Loc); in getParentTypeLoc() local
497 // FIXME: figure out how to handle it when there are multiple parents. in getParentTypeLoc()
498 if (Parents.size() != 1) in getParentTypeLoc()
500 return Parents[0].get<TypeLoc>(); in getParentTypeLoc()