Lines Matching defs:Replace
47 Replacement Replace(createReplacement(Location, 4, ""));
48 EXPECT_TRUE(Replace.apply(Context.Rewrite));
55 Replacement Replace(createReplacement(Location, 17, ""));
56 EXPECT_TRUE(Replace.apply(Context.Rewrite));
63 Replacement Replace(createReplacement(Location, 0, "result"));
64 EXPECT_TRUE(Replace.apply(Context.Rewrite));
72 Replacement Replace(createReplacement(Location, 12, "x"));
73 EXPECT_TRUE(Replace.apply(Context.Rewrite));
94 Replacement Replace("nonexistent-file.cpp", 0, 1, "");
95 EXPECT_FALSE(Replace.apply(Context.Rewrite));
99 Replacement Replace("/path/to/file.cpp", 0, 1, "");
100 EXPECT_EQ("/path/to/file.cpp", Replace.getFilePath());
280 void expectReplacementAt(const Replacement &Replace,
282 ASSERT_TRUE(Replace.isApplicable());
283 EXPECT_EQ(File, Replace.getFilePath());
284 EXPECT_EQ(Offset, Replace.getOffset());
285 EXPECT_EQ(Length, Replace.getLength());
292 Replace = Replacement(*SM, Record, "");
296 Replacement Replace;
302 expectReplacementAt(ClassDeclX.Replace, "input.cc", 5, 7);
308 expectReplacementAt(ClassDeclX.Replace, "input.cc", 17, 7);
315 Replace = Replacement(*SM, Call, "");
319 Replacement Replace;
325 expectReplacementAt(CallToF.Replace, "input.cc", 21, 3);
332 expectReplacementAt(CallToF.Replace, "input.cc", 43, 8);