summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/ClangdServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/ClangdServer.h')
-rw-r--r--clang-tools-extra/clangd/ClangdServer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.h b/clang-tools-extra/clangd/ClangdServer.h
index fa6783b1f1c..170b421b9ad 100644
--- a/clang-tools-extra/clangd/ClangdServer.h
+++ b/clang-tools-extra/clangd/ClangdServer.h
@@ -241,6 +241,10 @@ public:
PathRef File, Position Pos,
StringRef TriggerText);
+ /// Test the validity of a rename operation.
+ void prepareRename(PathRef File, Position Pos,
+ Callback<llvm::Optional<Range>> CB);
+
/// Rename all occurrences of the symbol at the \p Pos in \p File to
/// \p NewName.
/// If WantFormat is false, the final TextEdit will be not formatted,
OpenPOWER on IntegriCloud