Lines Matching refs:Replace
47 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F() local
48 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
55 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F() local
56 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
63 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F() local
64 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
72 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F() local
73 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
94 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); in TEST_F() local
95 EXPECT_FALSE(Replace.apply(Context.Rewrite)); in TEST_F()
99 Replacement Replace("/path/to/file.cpp", 0, 1, ""); in TEST_F() local
100 EXPECT_EQ("/path/to/file.cpp", Replace.getFilePath()); in TEST_F()
316 void expectReplacementAt(const Replacement &Replace, in expectReplacementAt() argument
318 ASSERT_TRUE(Replace.isApplicable()); in expectReplacementAt()
319 EXPECT_EQ(File, Replace.getFilePath()); in expectReplacementAt()
320 EXPECT_EQ(Offset, Replace.getOffset()); in expectReplacementAt()
321 EXPECT_EQ(Length, Replace.getLength()); in expectReplacementAt()
328 Replace = Replacement(*SM, Record, ""); in VisitCXXRecordDecl()
332 Replacement Replace; member in clang::tooling::ClassDeclXVisitor
338 expectReplacementAt(ClassDeclX.Replace, "input.cc", 5, 7); in TEST()
344 expectReplacementAt(ClassDeclX.Replace, "input.cc", 17, 7); in TEST()
351 Replace = Replacement(*SM, Call, ""); in VisitCallExpr()
355 Replacement Replace; member in clang::tooling::CallToFVisitor
361 expectReplacementAt(CallToF.Replace, "input.cc", 21, 3); in TEST()
368 expectReplacementAt(CallToF.Replace, "input.cc", 43, 8); in TEST()