mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-10 02:02:12 +00:00
query: fix UpdateUses when a new entity is seen
Thanks to Leszek Swirski
This commit is contained in:
parent
125d00e2a5
commit
a10d53071c
@ -264,7 +264,7 @@ void DB::ApplyIndexUpdate(IndexUpdate *u) {
|
||||
auto &entities, auto &p, bool hint_implicit) {
|
||||
auto R = entity_usr.try_emplace(usr, entity_usr.size());
|
||||
if (R.second)
|
||||
vars.emplace_back().usr = usr;
|
||||
entities.emplace_back().usr = usr;
|
||||
auto &entity = entities[R.first->second];
|
||||
for (Use &use : p.first) {
|
||||
if (hint_implicit && use.role & Role::Implicit) {
|
||||
|
Loading…
Reference in New Issue
Block a user