MCPcopy Create free account
hub / github.com/MaskRay/ccls / update

Method update

src/query.cc:394–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394int DB::update(QueryFile::DefUpdate &&u) {
395 int file_id = getFileId(u.first.path);
396 files[file_id].def = u.first;
397 return file_id;
398}
399
400void DB::update(const Lid2file_id &lid2file_id, int file_id, std::vector<std::pair<Usr, QueryFunc::Def>> &&us) {
401 for (auto &u : us) {

Callers

nothing calls this directly

Calls 3

assignFileIdFunction · 0.85
tryReplaceDefFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected