Lines Matching refs:HasAncestor
3111 // would need to return false; for hasAncestor, it means that not
3170 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3177 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3375 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A"))))));
3381 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X"))))));
3384 TEST(HasAncestor, MatchesDeclarationsThatGetVisitedLater) {
3388 hasAncestor(recordDecl(hasName("A"))))))));
3394 integerLiteral(equals(42), hasAncestor(ifStmt()))));
3397 TEST(HasAncestor, DrillsThroughDifferentHierarchies) {
3400 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f"))))));
3403 TEST(HasAncestor, BindsRecursiveCombinations) {
3406 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))),
3410 TEST(HasAncestor, BindsCombinationsWithHasDescendant) {
3413 fieldDecl(hasAncestor(
3416 hasAncestor(recordDecl())))
3422 TEST(HasAncestor, MatchesClosestAncestor) {
3431 hasAncestor(functionDecl(hasParameter(
3436 TEST(HasAncestor, MatchesInTemplateInstantiations) {
3441 hasAncestor(recordDecl(hasName("A"))))));
3444 TEST(HasAncestor, MatchesInImplicitCode) {
3449 hasAncestor(recordDecl(hasName("A")))))))));
3464 TEST(HasAncestor, MatchesAllAncestors) {
3470 allOf(hasAncestor(recordDecl(isTemplateInstantiation())),
3471 hasAncestor(recordDecl(unless(isTemplateInstantiation())))))));