• Home
  • Raw
  • Download

Lines Matching refs:Replace

48   Replacement Replace(createReplacement(Location, 4, ""));  in TEST_F()  local
49 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
56 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F() local
57 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
64 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F() local
65 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
73 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F() local
74 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
95 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); in TEST_F() local
96 EXPECT_FALSE(Replace.apply(Context.Rewrite)); in TEST_F()
100 Replacement Replace("/path/to/file.cpp", 0, 1, ""); in TEST_F() local
101 EXPECT_EQ("/path/to/file.cpp", Replace.getFilePath()); in TEST_F()
361 void expectReplacementAt(const Replacement &Replace, in expectReplacementAt() argument
363 ASSERT_TRUE(Replace.isApplicable()); in expectReplacementAt()
364 EXPECT_EQ(File, Replace.getFilePath()); in expectReplacementAt()
365 EXPECT_EQ(Offset, Replace.getOffset()); in expectReplacementAt()
366 EXPECT_EQ(Length, Replace.getLength()); in expectReplacementAt()
373 Replace = Replacement(*SM, Record, ""); in VisitCXXRecordDecl()
377 Replacement Replace; member in clang::tooling::ClassDeclXVisitor
383 expectReplacementAt(ClassDeclX.Replace, "input.cc", 5, 7); in TEST()
389 expectReplacementAt(ClassDeclX.Replace, "input.cc", 17, 7); in TEST()
396 Replace = Replacement(*SM, Call, ""); in VisitCallExpr()
400 Replacement Replace; member in clang::tooling::CallToFVisitor
406 expectReplacementAt(CallToF.Replace, "input.cc", 21, 3); in TEST()
413 expectReplacementAt(CallToF.Replace, "input.cc", 43, 8); in TEST()
423 Replace = Replacement(*SM, &NNSLoc, "", Context->getLangOpts()); in TraverseNestedNameSpecifierLoc()
430 Replacement Replace; member in clang::tooling::NestedNameSpecifierAVisitor
436 expectReplacementAt(VisitNNSA.Replace, "input.cc", 25, 5); in TEST()