summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp')
-rw-r--r--clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
index c0442708210..27cc637551c 100644
--- a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
+++ b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
@@ -18,7 +18,6 @@
#include <algorithm>
#include <utility>
-using namespace llvm;
namespace clang {
namespace clangd {
namespace {
@@ -43,8 +42,8 @@ protected:
buildTestFS(Files, Timestamps), std::move(Contents)};
}
- void updateWithCallback(TUScheduler &S, PathRef File, StringRef Contents,
- WantDiagnostics WD,
+ void updateWithCallback(TUScheduler &S, PathRef File,
+ llvm::StringRef Contents, WantDiagnostics WD,
llvm::unique_function<void()> CB) {
WithContextValue Ctx(llvm::make_scope_exit(std::move(CB)));
S.update(File, getInputs(File, Contents), WD);
@@ -93,8 +92,8 @@ protected:
std::move(CB));
}
- StringMap<std::string> Files;
- StringMap<time_t> Timestamps;
+ llvm::StringMap<std::string> Files;
+ llvm::StringMap<time_t> Timestamps;
MockCompilationDatabase CDB;
};
OpenPOWER on IntegriCloud