summaryrefslogtreecommitdiffstats
path: root/include/clang/Tooling/Core/Replacement.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Tooling/Core/Replacement.h')
-rw-r--r--include/clang/Tooling/Core/Replacement.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Tooling/Core/Replacement.h b/include/clang/Tooling/Core/Replacement.h
index f189e12..37389ac 100644
--- a/include/clang/Tooling/Core/Replacement.h
+++ b/include/clang/Tooling/Core/Replacement.h
@@ -220,6 +220,12 @@ bool applyAllReplacements(const std::vector<Replacement> &Replaces,
/// replacements cannot be applied, this returns an empty \c string.
std::string applyAllReplacements(StringRef Code, const Replacements &Replaces);
+/// \brief Merges two sets of replacements with the second set referring to the
+/// code after applying the first set. Within both 'First' and 'Second',
+/// replacements must not overlap.
+Replacements mergeReplacements(const Replacements &First,
+ const Replacements &Second);
+
template <typename Node>
Replacement::Replacement(const SourceManager &Sources,
const Node &NodeToReplace, StringRef ReplacementText,
OpenPOWER on IntegriCloud