[clangd] Remove forceReparse, add a flag to addDocument instead
Summary: To make the removal of DraftMgr from ClangdServer easier (D44408).
Reviewers: sammccall, simark
Reviewed By: sammccall, simark
Subscribers: simark, klimek, jkorous-apple, ioeric, cfe-commits
Differential Revision: https://reviews.llvm.org/D44462
llvm-svn: 327532
diff --git a/clang-tools-extra/unittests/clangd/SyncAPI.cpp b/clang-tools-extra/unittests/clangd/SyncAPI.cpp
index 7e51e60..28393ee 100644
--- a/clang-tools-extra/unittests/clangd/SyncAPI.cpp
+++ b/clang-tools-extra/unittests/clangd/SyncAPI.cpp
@@ -11,8 +11,9 @@
namespace clang {
namespace clangd {
-void runAddDocument(ClangdServer &Server, PathRef File, StringRef Contents) {
- Server.addDocument(File, Contents);
+void runAddDocument(ClangdServer &Server, PathRef File, StringRef Contents,
+ WantDiagnostics WantDiags, bool SkipCache) {
+ Server.addDocument(File, Contents, WantDiags, SkipCache);
if (!Server.blockUntilIdleForTest())
llvm_unreachable("not idle after addDocument");
}