diff options
Diffstat (limited to 'clang-tools-extra/clangd/ClangdServer.h')
| -rw-r--r-- | clang-tools-extra/clangd/ClangdServer.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.h b/clang-tools-extra/clangd/ClangdServer.h index 2fe9e9bcdfd..576334795c3 100644 --- a/clang-tools-extra/clangd/ClangdServer.h +++ b/clang-tools-extra/clangd/ClangdServer.h @@ -57,14 +57,6 @@ public: using ClangTidyOptionsBuilder = std::function<tidy::ClangTidyOptions( llvm::vfs::FileSystem &, llvm::StringRef /*File*/)>; -/// Like Tweak::Effect, but stores TextEdits instead of tooling::Replacements. -/// Slightly nicer to embedders of ClangdServer. -/// FIXME: figure out how to remove this duplication. -struct ResolvedEffect { - llvm::Optional<std::string> ShowMessage; - llvm::Optional<std::vector<TextEdit>> ApplyEdit; -}; - /// Manages a collection of source files and derived data (ASTs, indexes), /// and provides language-aware features such as code completion. /// @@ -250,7 +242,7 @@ public: /// Apply the code tweak with a specified \p ID. void applyTweak(PathRef File, Range Sel, StringRef ID, - Callback<ResolvedEffect> CB); + Callback<Tweak::Effect> CB); /// Only for testing purposes. /// Waits until all requests to worker thread are finished and dumps AST for |

