Lines Matching defs:Matcher

506 TEST(Matcher, Argument) {
520 TEST(Matcher, AnyArgument) {
559 TEST(Matcher, HasReceiver) {
573 TEST(Matcher, MatchesMethodsOnLambda) {
609 TEST(Matcher, MatchesCoroutine) {
728 TEST(Matcher, isClassMessage) {
742 TEST(Matcher, isInstanceMessage) {
757 TEST(Matcher, isClassMethod) {
777 TEST(Matcher, isInstanceMethod) {
866 TEST(Matcher, HasObjectExpr) {
1321 TEST(Matcher, MatchesTypeTemplateArgument) {
1329 TEST(Matcher, MatchesTemplateTemplateArgument) {
1337 TEST(Matcher, MatchesDeclarationReferenceTemplateArgument) {
1366 TEST(Matcher, MatchesSpecificArgument) {
1629 StatementMatcher Matcher =
1632 EXPECT_TRUE(matches("int x(int I) { return I + 2; }", Matcher));
1633 EXPECT_TRUE(matches("int x(int I) { return I - 2; }", Matcher));
1634 EXPECT_TRUE(matches("int x(int I) { return I * 2; }", Matcher));
1635 EXPECT_TRUE(matches("int x(int I) { return I / 2; }", Matcher));
1636 EXPECT_TRUE(notMatches("int x(int I) { return I % 2; }", Matcher));
1638 EXPECT_TRUE(notMatches("void x(int &I) { I += 1; }", Matcher));
1768 TEST(Matcher, BinaryOperatorTypes) {
1877 StatementMatcher Matcher = unaryOperator(hasAnyOperatorName("-", "*", "++"));
1879 EXPECT_TRUE(matches("int x(int *I) { return *I; }", Matcher));
1880 EXPECT_TRUE(matches("int x(int I) { return -I; }", Matcher));
1881 EXPECT_TRUE(matches("void x(int &I) { I++; }", Matcher));
1882 EXPECT_TRUE(matches("void x(int &I) { ++I; }", Matcher));
1883 EXPECT_TRUE(notMatches("void x(int &I) { I--; }", Matcher));
1884 EXPECT_TRUE(notMatches("void x(int &I) { --I; }", Matcher));
1885 EXPECT_TRUE(notMatches("int *x(int &I) { return &I; }", Matcher));
2045 TEST(Matcher, UnaryOperatorTypes) {
2239 TEST(Matcher, OfClass) {
2253 TEST(Matcher, VisitsTemplateInstantiations) {
2273 TEST(Matcher, HasCondition) {
2444 TEST(Matcher, IgnoresElidableConstructors) {
2479 TEST(Matcher, IgnoresElidableInReturn) {
2494 TEST(Matcher, IgnoreElidableConstructorDoesNotMatchConstructors) {
2504 TEST(Matcher, IgnoresElidableDoesNotPreventMatches) {
2512 TEST(Matcher, IgnoresElidableInVarInit) {
2585 auto Matcher = varDecl(hasInitializer(floatLiteral()));
2587 EXPECT_TRUE(notMatches(VarDeclCode, traverse(TK_AsIs, Matcher)));
2589 matches(VarDeclCode, traverse(TK_IgnoreUnlessSpelledInSource, Matcher)));
3817 auto Matcher = traverse(TK_IgnoreUnlessSpelledInSource, implicitCastExpr());
3820 EXPECT_FALSE(matches(Code, Matcher));
3832 auto Matcher = varDecl(hasInitializer(floatLiteral()));
3835 // nodes. In the matcher below, the first use of hasDescendant(Matcher)
3843 functionDecl(anyOf(hasDescendant(Matcher),
3845 functionDecl(hasDescendant(Matcher)))))));
5883 VerifyMatchOnNode(StringRef Id, const internal::Matcher<T> &InnerMatcher,
5895 internal::Matcher<T> InnerMatcher;
6135 void ExpectCorrectResult(StringRef LogInfo, MatcherT Matcher,
6138 auto const &Results = match(findAll(Matcher), *FunDef->getBody(), Context);
6177 TEST(Matcher, ForEachOverriden) {
6221 TEST(Matcher, HasAnyDeclaration) {
6257 auto Matcher = classTemplateSpecializationDecl(
6260 matches("template<typename T> class A {}; typedef A<int> B;", Matcher));
6261 EXPECT_TRUE(notMatches("template<typename T> class A {};", Matcher));