Lines Matching refs:CDB
129 std::shared_ptr<tooling::CompilationDatabase> CDB; member in clang::clangd::DirectoryBasedGlobalCompilationDatabase::DirectoryCache
171 auto RequestBroadcast = llvm::make_scope_exit([&, OldCDB(CDB.get())] { in get()
173 if (CDB != nullptr && CDB.get() != OldCDB) in get()
175 else if (CDB == nullptr) // nothing to broadcast anymore! in get()
186 return CDB; in get()
191 NoCDBAt.store((CDB ? stopwatch::time_point::min() : CachePopulatedAt) in get()
196 return CDB; in get()
246 if (auto CDB = tooling::JSONCompilationDatabase::loadFromBuffer( in parseJSON() local
256 expandResponseFiles(std::move(CDB), std::move(FS)))); in parseJSON()
293 CDB = nullptr; in load()
306 CDB = Entry.Parser(Entry.File->Path, Loaded.Buffer->getBuffer(), Error); in load()
307 if (CDB) in load()
333 if (auto CDB = Plugin->loadFromDirectory(Path, Error)) { in load() local
336 this->CDB = std::move(CDB); in load()
372 auto Candidates = Res->CDB->getCompileCommands(File); in getCompileCommand()
433 std::shared_ptr<const tooling::CompilationDatabase> CDB = nullptr; in lookupCDB() local
438 if ((CDB = Candidate->get(Opts.TFS, CandidateShouldBroadcast, in lookupCDB()
446 if (!CDB) in lookupCDB()
450 Result.CDB = std::move(CDB); in lookupCDB()
712 Filter(T.PI.SourceRoot, Parent).filter(T.CDB->getAllFiles(), ShouldStop); in process()
719 assert(Result.CDB && "Trying to broadcast an invalid CDB!"); in broadcastCDB()