Lines Matching refs:testRule

160   void testRule(RewriteRule Rule, StringRef Input, StringRef Expected) {  in testRule()  function in __anon690f32e70111::ClangRefactoringTestBase
167 void testRule(RewriteRuleWith<std::string> Rule, StringRef Input, in testRule() function in __anon690f32e70111::ClangRefactoringTestBase
223 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
229 testRule(ruleStrlenSize(), Input, Input); in TEST_F()
253 testRule(std::move(Rule), Input, Expected); in TEST_F()
271 testRule(Rule, Input, Expected); in TEST_F()
290 testRule(Rule, Input, Expected); in TEST_F()
308 testRule(Rule, Input, Expected); in TEST_F()
326 testRule(Rule, Input, Expected); in TEST_F()
343 testRule(Rule, Input, Expected); in TEST_F()
363 testRule(makeRule(declRefExpr(to(functionDecl(hasName("bad")))).bind(Ref), in TEST_F()
413 testRule(Rule, Input, Expected); in TEST_F()
445 testRule(makeRule(memberExpr().bind(E), in TEST_F()
477 testRule(makeRule(memberExpr().bind(MemExpr), in TEST_F()
485 testRule(makeRule(returnStmt().bind("return"), noEdits()), Input, Input); in TEST_F()
492 testRule(makeRule(returnStmt().bind("return"), noopEdit(node("return"))), in TEST_F()
500 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
509 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
519 testRule(makeRule(functionDecl(hasDescendant(returnStmt().bind("return"))) in TEST_F()
533 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
544 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
559 testRule(makeRule(functionDecl(hasName("f"), hasBody(stmt().bind("body"))), in TEST_F()
571 testRule( in TEST_F()
585 testRule( in TEST_F()
601 testRule(makeRule(functionDecl(hasName("f"), in TEST_F()
654 testRule(makeRule(functionDecl(hasName("f"), hasBody(stmt().bind("body"))), in TEST_F()
671 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
687 testRule( in TEST_F()
710 testRule( in TEST_F()
735 testRule( in TEST_F()
757 testRule( in TEST_F()
777 testRule( in TEST_F()
831 testRule( in TEST_F()
857 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
884 testRule( in TEST_F()
912 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
944 testRule(applyFirst({ruleStrlenSize(), FlagRule}), Input, Expected); in TEST_F()
967 testRule(applyFirst({ReplaceF1, ReplaceF1OrF2}), Input, Expected); in TEST_F()
992 testRule(applyFirst({ReplaceF1OrF2, ReplaceF1}), Input, Expected); in TEST_F()
1025 testRule(Rule, Input, Expected); in TEST_F()
1050 testRule(applyFirst({ReplaceF1, ReplaceF2}), Input, Expected); in TEST_F()
1161 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedRecord), in TEST_F()
1165 testRule(makeRule(traverse(TK_AsIs, MatchedRecord), RewriteRule), in TEST_F()
1215 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedRecord), in TEST_F()
1219 testRule(makeRule(traverse(TK_AsIs, MatchedRecord), RewriteRule), in TEST_F()
1287 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedLoop), in TEST_F()
1358 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedLoop), in TEST_F()
1398 testRule(makeRule(traverse(TK_IgnoreUnlessSpelledInSource, MatchedField), in TEST_F()
1423 testRule(makeRule(traverse(TK_AsIs, MatchedField), in TEST_F()
1445 testRule(R, Input, Expected); in TEST_F()
1460 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1474 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1491 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1509 testRule(ruleStrlenSize(), Input, Expected); in TEST_F()
1524 testRule(makeRule(integerLiteral(), changeTo(cat("LIT"))), Input, Expected); in TEST_F()
1540 testRule(makeRule(binaryOperator(hasLHS(expr().bind(E))), in TEST_F()
1558 testRule(makeRule(binaryOperator(hasRHS(expr().bind(E))), in TEST_F()
1575 testRule(R, Input, Input); in TEST_F()
1589 testRule(ruleStrlenSize(), Input, Input); in TEST_F()
1722 testRule(std::move(Rule), Input, Expected); in TEST_F()
1731 testRule(std::move(Rule), Input, Input); in TEST_F()