reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Rewrite/RewriterTest.cpp
   31     Rewrite = Rewriter(C.getSourceManager(), C.getLangOpts());
   52   EXPECT_EQ(T.Rewrite.getRewrittenText(T.CRange), "ret");
   53   EXPECT_EQ(T.Rewrite.getRewrittenText(T.TRange), "return");
   54   EXPECT_EQ(T.Rewrite.getRewrittenText(T.SRange), "return");
   55   T.Rewrite.InsertText(T.makeLoc(13), "x");
   56   EXPECT_EQ(T.Rewrite.getRewrittenText(T.CRange), "xret");
   57   EXPECT_EQ(T.Rewrite.getRewrittenText(T.TRange), "xreturn");
   58   EXPECT_EQ(T.Rewrite.getRewrittenText(T.SRange), "xreturn");
   72   T.Rewrite.ReplaceText(T.CRange, "foo");
   73   EXPECT_EQ(T.Rewrite.getRewrittenText(T.makeCharRange(42, 47)), "foogc;");
   74   T.Rewrite.ReplaceText(T.TRange, "bar");
   75   EXPECT_EQ(T.Rewrite.getRewrittenText(T.makeCharRange(42, 47)), "bar;");
   76   T.Rewrite.ReplaceText(T.SRange, "0");
   77   EXPECT_EQ(T.Rewrite.getRewrittenText(T.makeCharRange(42, 47)), "0;");