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

References

tools/clang/unittests/Format/CleanupTest.cpp
  359       toReplacements({createReplacement(getOffset(Code, 3, 3), 6, ""),
  381       toReplacements({createInsertion("#include <list>"),
  402       toReplacements({createInsertion("#include <list>"),
  417   tooling::Replacements Replaces = toReplacements(
  436   tooling::Replacements Replaces = toReplacements(
  452       toReplacements({createInsertion("#include <string>"),
  474   tooling::Replacements Replaces = toReplacements(
  491       toReplacements({createDeletion("abc.h"), createDeletion("xyz.h")});
  502   tooling::Replacements Replaces = toReplacements(
tools/clang/unittests/Format/FormatTest.cpp
14369   tooling::Replacements Replaces = toReplacements(
14404   tooling::Replacements Replaces = toReplacements(
tools/clang/unittests/Tooling/RefactoringTest.cpp
  436       toReplacements({Replacement(Context.Sources,
  449   Replacements Replaces = toReplacements(
  460   Replacements Replaces = toReplacements(
  470   auto Replaces = toReplacements({Replacement(
  490   auto Replaces = toReplacements({Replacement(
  506       toReplacements({Replacement(Context.Sources, SourceLocation(), 5, "2")});
  531   FileToReplaces[File1] = toReplacements(
  536   FileToReplaces[File2] = toReplacements(
  550       toReplacements({Replacement("", 0, 1, ""), Replacement("", 4, 3, " ")});
  564   Replacements Replaces = toReplacements({Replacement("", 4, 0, "\"\n\"")});
  573   auto Replaces = toReplacements({Replacement("", 0, 4, "abcd")});
  579   Replacements Replaces = toReplacements({Replacement("", 0, 42, "")});
  640   Replacements Replaces = toReplacements({Replacement(
  789   Replacements Replaces = toReplacements(
  803   Replacements Replaces = toReplacements(
  822   Replacements Replaces = toReplacements({Replacement("foo", 0, 2, "1234")});
  829   Replacements Replaces = toReplacements({Replacement("foo", 20, 2, "1234")});
  836   Replacements Replaces = toReplacements({Replacement("foo", 3, 2, "12"),
  846   Replacements Replaces = toReplacements({Replacement("foo", 3, 1, ""),
  857   Replacements Replaces = toReplacements(
  868       toReplacements({Replacement("foo", 1, 15, "1234567890")});
  875   Replacements Replaces = toReplacements(
  884   Replacements Replaces = toReplacements(
  892   Replacements Replaces = toReplacements(
  900   Replacements Replaces = toReplacements({Replacement("foo", 1, 3, ""),
  910   Replacements Replaces = toReplacements({Replacement("foo", 1, 3, "")});
  955                       toReplacements({{"", 2, 0, "b"}, {"", 3, 0, "b"}}),
  956                       toReplacements({{"", 0, 0, "c"}, {"", 1, 0, "c"}}));
  958                       toReplacements({{"", 0, 0, "b"}, {"", 1, 0, "b"}}),
  959                       toReplacements({{"", 4, 0, "c"}, {"", 5, 0, "c"}}));
  960   mergeAndTestRewrite("aaaa", "aaa", "aac", toReplacements({{"", 1, 1, ""}}),
  961                       toReplacements({{"", 2, 1, "c"}}));
  964                       toReplacements({{"", 0, 0, "bb"}, {"", 1, 0, "bb"}}),
  965                       toReplacements({{"", 4, 0, "c"}}));
  972     auto First = toReplacements({{"", 0, 0, "a"}});
  973     auto Second = toReplacements({{"", 1, 0, "b"}});
  974     EXPECT_EQ(toReplacements({{"", 0, 0, "ab"}}), First.merge(Second));
  977     auto First = toReplacements({{"", 0, 0, "a"}});
  978     auto Second = toReplacements({{"", 0, 0, "b"}});
  979     EXPECT_EQ(toReplacements({{"", 0, 0, "ba"}}), First.merge(Second));
  981   mergeAndTestRewrite("", "a", "ab", toReplacements({{"", 0, 0, "a"}}),
  982                       toReplacements({{"", 1, 0, "b"}}));
  983   mergeAndTestRewrite("", "a", "ba", toReplacements({{"", 0, 0, "a"}}),
  984                       toReplacements({{"", 0, 0, "b"}}));
  989                       toReplacements({{"", 1, 2, "bb"}}),
  990                       toReplacements({{"", 1, 2, "cc"}}));
  992                       toReplacements({{"", 1, 2, "bb"}}),
  993                       toReplacements({{"", 2, 2, "cc"}}));
  995                       toReplacements({{"", 1, 2, "bb"}}),
  996                       toReplacements({{"", 0, 2, "cc"}}));
  998                       toReplacements({{"", 1, 2, "bb"}, {"", 3, 2, "dd"}}),
  999                       toReplacements({{"", 2, 2, "cc"}}));
 1004                       toReplacements({{"", 0, 1, "bb"}, {"", 1, 2, "d"}}),
 1005                       toReplacements({{"", 1, 0, "c"}, {"", 2, 0, "c"}}));
 1008                       toReplacements({{"", 2, 0, "bb"}}),
 1009                       toReplacements({{"", 1, 4, "cccc"}}));
 1011                       toReplacements({{"", 2, 0, "b"}, {"", 3, 0, "b"}}),
 1012                       toReplacements({{"", 1, 4, "cccc"}}));
 1014                       toReplacements({{"", 1, 4, "bbbb"}}),
 1015                       toReplacements({{"", 2, 2, ""}}));
 1017                       toReplacements({{"", 1, 1, ""}, {"", 2, 1, ""}}),
 1018                       toReplacements({{"", 0, 2, "cc"}}));
 1020                       toReplacements({{"", 1, 0, "bbb"}}),
 1021                       toReplacements({{"", 2, 0, "c"}, {"", 3, 0, "c"}}));
 1025       toReplacements({{"", 0, 1, ""}, {"", 2, 0, "bb"}, {"", 3, 0, "b"}}),
 1026       toReplacements({{"", 0, 2, "cc"}, {"", 2, 3, "dd"}}));
 1029       toReplacements({{"", 0, 0, "b"}, {"", 1, 0, "bb"}, {"", 2, 0, "b"}}),
 1030       toReplacements({{"", 0, 3, "cc"}, {"", 3, 3, "dd"}}));