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