Lines Matching full:context
16 RewriterTestContext Context;
17 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4");
18 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced");
19 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles());
21 Context.getFileContentFromDisk("t.cpp"));
25 RewriterTestContext Context;
26 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test");
27 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other");
28 FileID WorkingID = Context.createOnDiskFile(
30 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5,
32 EXPECT_TRUE(Context.Rewrite.overwriteChangedFiles());
34 Context.getFileContentFromDisk("working.cpp"));