MCPcopy Create free account
hub / github.com/KDE/kdevelop / hasUses

Method hasUses

kdevplatform/language/duchain/uses.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177bool Uses::hasUses(const DeclarationId& id) const
178{
179 UsesItem item;
180 item.declaration = id;
181
182 return LockedItemRepository::read<Uses>([&item](const UsesRepo& repo) {
183 return static_cast<bool>(repo.findIndex(item));
184 });
185}
186
187KDevVarLengthArray<IndexedTopDUContext> Uses::uses(const DeclarationId& id) const
188{

Callers 2

declarationHasUsesMethod · 0.45
cleanIfNotEncounteredMethod · 0.45

Calls 1

findIndexMethod · 0.45

Tested by

no test coverage detected