Lines Matching full:hasancestor
3674 // would need to return false; for hasAncestor, it means that not
3733 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3740 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3994 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A"))))));
4000 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X"))))));
4003 TEST(HasAncestor, MatchesDeclarationsThatGetVisitedLater) {
4007 hasAncestor(recordDecl(hasName("A"))))))));
4013 integerLiteral(equals(42), hasAncestor(ifStmt()))));
4016 TEST(HasAncestor, DrillsThroughDifferentHierarchies) {
4019 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f"))))));
4022 TEST(HasAncestor, BindsRecursiveCombinations) {
4025 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))),
4029 TEST(HasAncestor, BindsCombinationsWithHasDescendant) {
4032 fieldDecl(hasAncestor(
4035 hasAncestor(recordDecl())))
4041 TEST(HasAncestor, MatchesClosestAncestor) {
4050 hasAncestor(functionDecl(hasParameter(
4055 TEST(HasAncestor, MatchesInTemplateInstantiations) {
4060 hasAncestor(recordDecl(hasName("A"))))));
4063 TEST(HasAncestor, MatchesInImplicitCode) {
4068 hasAncestor(recordDecl(hasName("A")))))))));
4083 TEST(HasAncestor, MatchesAllAncestors) {
4090 hasAncestor(cxxRecordDecl(isTemplateInstantiation())),
4091 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation())))))));
4939 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
4955 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(