Lines Matching refs:changeTo
28 using ::clang::transformer::changeTo;
177 changeTo(cat("REPLACED")), cat("Use size() method directly on string.")); in ruleStrlenSize()
201 changeTo(node(std::string(Flag)), cat("EXPR"))); in TEST_F()
220 {addInclude("clang/OtherLib.h"), changeTo(cat("other()"))}); in TEST_F()
239 changeTo(cat("other()"))}); in TEST_F()
256 changeTo(cat("other()"))); in TEST_F()
274 changeTo(cat("other()"))); in TEST_F()
293 changeTo(name(std::string(Fun)), cat("good"))); in TEST_F()
325 changeTo(name(std::string(Ref)), cat("good"))), in TEST_F()
343 changeTo(name(std::string(Ref)), cat("good"))), in TEST_F()
353 changeTo(member(std::string(E)), cat("good"))); in TEST_F()
407 changeTo(member(std::string(E)), cat("good"))), in TEST_F()
439 changeTo(member(std::string(MemExpr)), cat("good"))), in TEST_F()
462 ifBound("return", changeTo(cat("CHANGE;")))), in TEST_F()
471 ifBound("nothing", changeTo(cat("ERROR")), in TEST_F()
472 changeTo(cat("CHANGE;")))), in TEST_F()
493 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
504 changeTo(cat("char"))); in TEST_F()
519 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
531 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
535 flatten(changeTo(name("f"), cat("newName")), in TEST_F()
545 changeTo(cat("char"))); in TEST_F()
561 changeTo(cat("3"))); in TEST_F()
573 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
587 makeRule(qualType(isInteger(), builtinType()), changeTo(cat("char"))); in TEST_F()
614 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
631 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
647 changeTo(cat("char"))); in TEST_F()
670 makeRule(declRefExpr(to(varDecl(hasName("x")))), changeTo(cat("3"))); in TEST_F()
795 {changeTo(node(std::string(C)), cat("true")), in TEST_F()
796 changeTo(statement(std::string(T)), cat("{ /* then */ }")), in TEST_F()
797 changeTo(statement(std::string(E)), cat("{ /* else */ }"))}), in TEST_F()
821 editList({changeTo(node(std::string(C)), cat("true")), in TEST_F()
822 changeTo(statement(std::string(T)), in TEST_F()
824 changeTo(statement(std::string(E)), in TEST_F()
851 flatten(changeTo(node(std::string(C)), cat("true")), in TEST_F()
852 changeTo(statement(std::string(T)), cat("{ /* then */ }")), in TEST_F()
853 changeTo(statement(std::string(E)), cat("{ /* else */ }")))), in TEST_F()
877 flatten(changeTo(node(std::string(C)), cat("true")), in TEST_F()
878 edit(changeTo(statement(std::string(T)), in TEST_F()
880 editList({changeTo(statement(std::string(E)), in TEST_F()
892 changeTo(node(std::string(Flag)), cat("PROTO"))); in TEST_F()
926 changeTo(cat("REPLACE_F1"))); in TEST_F()
929 changeTo(cat("REPLACE_F1_OR_F2"))); in TEST_F()
951 changeTo(cat("REPLACE_F1"))); in TEST_F()
954 changeTo(cat("REPLACE_F1_OR_F2"))); in TEST_F()
979 changeTo(cat("REPLACE_F1"))); in TEST_F()
982 changeTo(cat("REPLACE_F1_OR_F2"))); in TEST_F()
984 changeTo(name("fun"), cat("DECL_RULE"))); in TEST_F()
1009 changeTo(cat("REPLACE_F1"))); in TEST_F()
1012 changeTo(cat("REPLACE_F2"))); in TEST_F()
1034 changeTo(node(std::string(O)), std::make_shared<AlwaysFail>())), in TEST_F()
1048 {changeTo(node(std::string(O)), cat("DELETE_OP")), in TEST_F()
1049 changeTo(node(std::string(L)), cat("DELETE_LHS"))}), in TEST_F()
1063 changeTo(node(std::string(E)), cat("DELETE_EXPR"))), in TEST_F()
1077 changeTo(cat("DELETED;"))), in TEST_F()
1122 changeTo(before(node("copyConstructor")), cat("explicit ")); in TEST_F()
1176 changeTo(node("constBeginCall"), cat(name("callTarget"), ".cbegin()")); in TEST_F()
1247 changeTo(transformer::enclose(node("loopVar"), node("incrementOp")), in TEST_F()
1320 changeTo(transformer::enclose(node("loopVar"), node("incrementOp")), in TEST_F()
1366 changeTo(cat("safe_int ", name("theField"), ";"))), in TEST_F()
1391 changeTo(cat("safe_int ", name("theField"), ";"))), in TEST_F()
1411 changeTo(node(std::string(zero)), cat("999"))); in TEST_F()
1491 testRule(makeRule(integerLiteral(), changeTo(cat("LIT"))), Input, Expected); in TEST_F()
1508 changeTo(node(std::string(E)), cat("LIT"))), in TEST_F()
1526 changeTo(node(std::string(E)), cat("LIT"))), in TEST_F()
1541 changeTo(node(std::string(zero)), cat("0"))); in TEST_F()
1563 RewriteRule QualTypeRule = makeRule(qualType(), changeTo(cat("Q"))); in TEST()
1567 RewriteRule TypeRule = makeRule(arrayType(), changeTo(cat("T"))); in TEST()
1580 makeRule(functionDecl(hasName("RemoveThisFunction")), changeTo(cat(""))), in TEST_F()