diff options
| -rw-r--r-- | clang-tools-extra/clangd/DraftStore.cpp | 2 | ||||
| -rw-r--r-- | clang-tools-extra/clangd/DraftStore.h | 2 | ||||
| -rw-r--r-- | clang-tools-extra/clangd/GlobalCompilationDatabase.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/DraftStore.cpp b/clang-tools-extra/clangd/DraftStore.cpp index 3455699a83b..6bdccf2a8c2 100644 --- a/clang-tools-extra/clangd/DraftStore.cpp +++ b/clang-tools-extra/clangd/DraftStore.cpp @@ -29,7 +29,7 @@ DocVersion DraftStore::getVersion(PathRef File) const { return It->second.Version; } -DocVersion DraftStore::updateDraft(PathRef File, StringRef Contents) { +DocVersion DraftStore::updateDraft(PathRef File, llvm::StringRef Contents) { std::lock_guard<std::mutex> Lock(Mutex); auto &Entry = Drafts[File]; diff --git a/clang-tools-extra/clangd/DraftStore.h b/clang-tools-extra/clangd/DraftStore.h index c4e31e7c813..e746e59843c 100644 --- a/clang-tools-extra/clangd/DraftStore.h +++ b/clang-tools-extra/clangd/DraftStore.h @@ -45,7 +45,7 @@ public: /// Replace contents of the draft for \p File with \p Contents. /// \return The new version of the draft for \p File. - DocVersion updateDraft(PathRef File, StringRef Contents); + DocVersion updateDraft(PathRef File, llvm::StringRef Contents); /// Remove the contents of the draft /// \return The new version of the draft for \p File. DocVersion removeDraft(PathRef File); diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.h b/clang-tools-extra/clangd/GlobalCompilationDatabase.h index c708c5ca7cd..933e566545b 100644 --- a/clang-tools-extra/clangd/GlobalCompilationDatabase.h +++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.h @@ -14,6 +14,7 @@ #include "llvm/ADT/StringMap.h" #include <memory> #include <mutex> +#include <vector> namespace clang { |

