Home | History | Annotate | Download | only in ASTMatchers

Lines Matching full:hasancestor

3417   //   would need to return false; for hasAncestor, it means that not
3476 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3483 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3737 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A"))))));
3743 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X"))))));
3746 TEST(HasAncestor, MatchesDeclarationsThatGetVisitedLater) {
3750 hasAncestor(recordDecl(hasName("A"))))))));
3756 integerLiteral(equals(42), hasAncestor(ifStmt()))));
3759 TEST(HasAncestor, DrillsThroughDifferentHierarchies) {
3762 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f"))))));
3765 TEST(HasAncestor, BindsRecursiveCombinations) {
3768 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))),
3772 TEST(HasAncestor, BindsCombinationsWithHasDescendant) {
3775 fieldDecl(hasAncestor(
3778 hasAncestor(recordDecl())))
3784 TEST(HasAncestor, MatchesClosestAncestor) {
3793 hasAncestor(functionDecl(hasParameter(
3798 TEST(HasAncestor, MatchesInTemplateInstantiations) {
3803 hasAncestor(recordDecl(hasName("A"))))));
3806 TEST(HasAncestor, MatchesInImplicitCode) {
3811 hasAncestor(recordDecl(hasName("A")))))))));
3826 TEST(HasAncestor, MatchesAllAncestors) {
3832 allOf(hasAncestor(recordDecl(isTemplateInstantiation())),
3833 hasAncestor(recordDecl(unless(isTemplateInstantiation())))))));
4638 unless(hasAncestor(stmt(hasDescendant(memberCallExpr(
4654 unless(hasAncestor(stmt(hasDescendant(memberCallExpr(