Home | History | Annotate | Download | only in Tooling

Lines Matching refs:Code

22 void expectRewritten(const std::string &Code,
30 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), Code))
31 << "Parsing error in \"" << Code << "\"";
33 FileID ID = Context.createInMemoryFile("input.cc", Code);
40 std::string Code = "void f() { int i = 1; }";
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
47 std::string Code = "#define A void f() { int i = 1; }\nA";
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
54 std::string Code = "#define A void f() { int i = 1; }";
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
61 std::string Code = "void f() { int i = 1; }";
64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())),
69 std::string Code = "void f() { int i = false ? 1 : i * 2; }";
72 expectRewritten(Code, Expected,
80 std::string Code = "bool a; void f() { if (a) f(); else a = true; }";
83 expectRewritten(Code, Expected,
91 std::string Code = "void f() { if (false) int i = 0; }";
94 expectRewritten(Code, Expected,