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

Declarations

tools/clang/include/clang/Tooling/Core/Replacement.h
  262   LLVM_NODISCARD Replacements merge(const Replacements &Replaces) const;

References

tools/clang/lib/Format/Format.cpp
 2246   return Replaces.merge(FormatReplaces);
 2350         Result = Result.merge(tooling::Replacements(Shifted));
 2427       Fixes = Fixes.merge(PassFixes.first);
tools/clang/lib/Tooling/Core/Replacement.cpp
  232   auto MergeShiftedRs = merge(RsShiftedByReplaces);
  234   auto MergeShiftedReplaces = Rs.merge(ReplacesShiftedByRs);
  528   return FakeReplaces.merge(Replaces).getAffectedRanges();
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
  279           Replaces = Replaces.merge(Replacements(NewR));
  347   AllReplaces = AllReplaces.merge(HeaderSortingReplacements);
tools/clang/tools/clang-format/ClangFormat.cpp
  428   Replaces = Replaces.merge(FormatChanges);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  154     *Replaces = Replaces->merge(tooling::Replacements(Replace));
 1017     Replaces = Replaces.merge(NewReplacements);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  434           Replaces = Replaces.merge(tooling::Replacements(R));
tools/clang/tools/extra/clang-move/Move.cpp
  863       AllCode = AllCode.merge(tooling::Replacements(tooling::Replacement(
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  159                 Replacements = Replacements.merge(tooling::Replacements(R));
tools/clang/tools/extra/clangd/ClangdServer.cpp
  484   return IncludeReplaces.merge(format::reformat(
tools/clang/tools/extra/clangd/Format.cpp
  338     Final = Final.merge(*Pass.second);
tools/clang/unittests/Tooling/RefactoringTest.cpp
  928     tooling::Replacements Merged = First.merge(Second);
  942     tooling::Replacements Merged = First.merge(Second);
  974     EXPECT_EQ(toReplacements({{"", 0, 0, "ab"}}), First.merge(Second));
  979     EXPECT_EQ(toReplacements({{"", 0, 0, "ba"}}), First.merge(Second));
tools/clang/unittests/Tooling/RewriterTest.cpp
   44       Replaces.merge(Replacements(Replacement("<file>", 6, 0, "replaced\n")));