Lines Matching refs:CDB
94 std::shared_ptr<tooling::CompilationDatabase> CDB; member in clang::clangd::DirectoryBasedGlobalCompilationDatabase::DirectoryCache
116 auto RequestBroadcast = llvm::make_scope_exit([&, OldCDB(CDB.get())] { in get()
118 if (CDB != nullptr && CDB.get() != OldCDB) in get()
120 else if (CDB == nullptr) // nothing to broadcast anymore! in get()
131 return CDB; in get()
132 assert(CDB == nullptr); in get()
137 if (!CDB) in get()
139 return CDB; in get()
148 CDB = tooling::CompilationDatabase::loadFromDirectory(Path, Error); in load()
149 if (!CDB) { in load()
157 CDB = tooling::CompilationDatabase::loadFromDirectory(BuildDir, Error); in load()
160 if (CDB) { in load()
190 auto Candidates = Res->CDB->getCompileCommands(File); in getCompileCommand()
244 std::shared_ptr<const tooling::CompilationDatabase> CDB = nullptr; in lookupCDB() local
248 CDB = DirCache->get(ShouldBroadcast); in lookupCDB()
260 if ((CDB = Candidate->get(CandidateShouldBroadcast))) { in lookupCDB()
268 if (!CDB) in lookupCDB()
272 Result.CDB = std::move(CDB); in lookupCDB()
284 assert(Result.CDB && "Trying to broadcast an invalid CDB!"); in broadcastCDB()
286 std::vector<std::string> AllFiles = Result.CDB->getAllFiles(); in broadcastCDB()