• Home
  • Raw
  • Download

Lines Matching refs:DB

43   DirectoryBasedGlobalCompilationDatabase DB(None);  in TEST()  local
44 auto Cmd = DB.getFallbackCommand(testPath("foo/bar.cc")); in TEST()
50 Cmd = DB.getFallbackCommand(testPath("foo/bar.h")); in TEST()
53 Cmd = DB.getFallbackCommand(testPath("foo/bar")); in TEST()
247 DirectoryBasedGlobalCompilationDatabase DB(llvm::None); in TEST() local
250 DB.watch([&DiscoveredFiles](const std::vector<std::string> Changes) { in TEST()
254 DB.getCompileCommand(FS.path("build/../a.cc")); in TEST()
259 DB.getCompileCommand(FS.path("build/gen.cc")); in TEST()
265 DirectoryBasedGlobalCompilationDatabase DB(FS.root().str()); in TEST() local
268 DB.watch([&DiscoveredFiles](const std::vector<std::string> Changes) { in TEST()
272 DB.getCompileCommand(FS.path("a.cc")); in TEST()
278 DB.getCompileCommand(FS.path("build/gen.cc")); in TEST()
299 OverlayCDB DB(nullptr); in TEST() local
302 DB.watch([&DiscoveredFiles](const std::vector<std::string> Changes) { in TEST()
308 DB.setCompileCommand(Root.str(), tooling::CompileCommand()); in TEST()
315 EXPECT_TRUE(DB.getCompileCommand(File)); in TEST()
316 EXPECT_FALSE(DB.getProjectInfo(File)); in TEST()
320 OverlayCDB DB(Base.get()); in TEST_F() local
324 EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot()); in TEST_F()
325 EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot()); in TEST_F()
328 DB.setCompileCommand(File, tooling::CompileCommand()); in TEST_F()
329 EXPECT_EQ(DB.getProjectInfo(File)->SourceRoot, testRoot()); in TEST_F()
330 EXPECT_EQ(DB.getProjectInfo(Header)->SourceRoot, testRoot()); in TEST_F()