Lines Matching refs:testRule
159 void testRule(RewriteRule Rule, StringRef Input, StringRef Expected) { in testRule() function in __anon7c89a2a40111::ClangRefactoringTestBase
166 void testRule(RewriteRuleWith<std::string> Rule, StringRef Input, in testRule() function in __anon7c89a2a40111::ClangRefactoringTestBase
222 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
228 testRule(ruleStrlenSize(), Input, Input); in TEST_F()
252 testRule(std::move(Rule), Input, Expected); in TEST_F()
270 testRule(Rule, Input, Expected); in TEST_F()
289 testRule(Rule, Input, Expected); in TEST_F()
307 testRule(Rule, Input, Expected); in TEST_F()
325 testRule(Rule, Input, Expected); in TEST_F()
342 testRule(Rule, Input, Expected); in TEST_F()
362 testRule(makeRule(declRefExpr(to(functionDecl(hasName("bad")))).bind(Ref), in TEST_F()
412 testRule(Rule, Input, Expected); in TEST_F()
444 testRule(makeRule(memberExpr().bind(E), in TEST_F()
476 testRule(makeRule(memberExpr().bind(MemExpr), in TEST_F()
484 testRule(makeRule(returnStmt().bind("return"), noEdits()), Input, Input); in TEST_F()
491 testRule(makeRule(returnStmt().bind("return"), noopEdit(node("return"))), in TEST_F()
499 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
508 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
518 testRule(makeRule(functionDecl(hasDescendant(returnStmt().bind("return"))) in TEST_F()
532 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
543 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
558 testRule(makeRule(functionDecl(hasName("f"), hasBody(stmt().bind("body"))), in TEST_F()
570 testRule( in TEST_F()
584 testRule( in TEST_F()
600 testRule(makeRule(functionDecl(hasName("f"), in TEST_F()
653 testRule(makeRule(functionDecl(hasName("f"), hasBody(stmt().bind("body"))), in TEST_F()
670 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
686 testRule( in TEST_F()
709 testRule( in TEST_F()
734 testRule( in TEST_F()
756 testRule( in TEST_F()
776 testRule( in TEST_F()
830 testRule( in TEST_F()
856 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
883 testRule( in TEST_F()
911 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
943 testRule(applyFirst({ruleStrlenSize(), FlagRule}), Input, Expected); in TEST_F()
966 testRule(applyFirst({ReplaceF1, ReplaceF1OrF2}), Input, Expected); in TEST_F()
991 testRule(applyFirst({ReplaceF1OrF2, ReplaceF1}), Input, Expected); in TEST_F()
1024 testRule(Rule, Input, Expected); in TEST_F()
1049 testRule(applyFirst({ReplaceF1, ReplaceF2}), Input, Expected); in TEST_F()
1160 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedRecord), in TEST_F()
1164 testRule(makeRule(traverse(TK_AsIs, MatchedRecord), RewriteRule), in TEST_F()
1214 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedRecord), in TEST_F()
1218 testRule(makeRule(traverse(TK_AsIs, MatchedRecord), RewriteRule), in TEST_F()
1286 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedLoop), in TEST_F()
1357 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedLoop), in TEST_F()
1397 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedField), in TEST_F()
1422 testRule(makeRule(traverse(TK_AsIs, MatchedField), in TEST_F()
1444 testRule(R, Input, Expected); in TEST_F()
1459 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1473 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1490 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1508 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1523 testRule(makeRule(integerLiteral(), changeTo(cat("LIT"))), Input, Expected); in TEST_F()
1539 testRule(makeRule(binaryOperator(hasLHS(expr().bind(E))), in TEST_F()
1557 testRule(makeRule(binaryOperator(hasRHS(expr().bind(E))), in TEST_F()
1574 testRule(R, Input, Input); in TEST_F()
1588 testRule(ruleStrlenSize(), Input, Input); in TEST_F()
1719 testRule(std::move(Rule), Input, Expected); in TEST_F()
1728 testRule(std::move(Rule), Input, Input); in TEST_F()