Lines Matching refs:ClassX

117   DeclarationMatcher ClassX = recordDecl(recordDecl(hasName("X")));  in TEST()  local
118 EXPECT_TRUE(matches("class X;", ClassX)); in TEST()
119 EXPECT_TRUE(matches("class X {};", ClassX)); in TEST()
120 EXPECT_TRUE(matches("template<class T> class X {};", ClassX)); in TEST()
121 EXPECT_TRUE(notMatches("", ClassX)); in TEST()
403 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST() local
404 EXPECT_TRUE(notMatches("class X;", ClassX)); in TEST()
405 EXPECT_TRUE(notMatches("class X {};", ClassX)); in TEST()
409 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST() local
410 EXPECT_TRUE(matches("template<typename T> class X {};", ClassX)); in TEST()
411 EXPECT_TRUE(matches("class Z { template<class T> class X {}; };", ClassX)); in TEST()
911 DeclarationMatcher ClassX = has(recordDecl(hasName("::X")).bind("x")); in TEST() local
914 ClassX, new VerifyIdIsBoundTo<CXXRecordDecl>("x"))); in TEST()
917 ClassX, new VerifyIdIsBoundTo<CXXRecordDecl>("other-id"))); in TEST()
954 DeclarationMatcher ClassX = recordDecl(hasName("X")).bind("x"); in TEST() local
958 recordDecl(hasName("A"), hasDescendant(ClassX)), in TEST()
959 recordDecl(hasName("B"), hasDescendant(ClassX)))), in TEST()
990 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST() local
992 matches("class X {}; void y(X &x) { x; }", expr(hasType(ClassX)))); in TEST()
995 expr(hasType(ClassX)))); in TEST()
998 expr(hasType(pointsTo(ClassX))))); in TEST()
1002 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST() local
1004 matches("class X {}; void y() { X x; }", varDecl(hasType(ClassX)))); in TEST()
1006 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()
1009 varDecl(hasType(pointsTo(ClassX))))); in TEST()
1013 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST() local
1015 matches("class X {}; void y(X &x) { x; }", expr(hasType(ClassX)))); in TEST()
1018 expr(hasType(ClassX)))); in TEST()
1022 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST() local
1024 matches("class X {}; void y() { X x; }", varDecl(hasType(ClassX)))); in TEST()
1026 notMatches("class X {}; void y() { X *x; }", varDecl(hasType(ClassX)))); in TEST()