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

Method makeConstant

kdevplatform/language/duchain/identifier.cpp:643–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643void Identifier::makeConstant() const
644{
645 if (m_index)
646 return;
647
648 LockedItemRepository::write<IndexedIdentifier>(
649 [&, request = IdentifierItemRequest(*dd)](IdentifierRepository& repo) {
650 m_index = repo.index(request);
651 delete dd;
652 cd = repo.itemFromIndex(m_index);
653 });
654}
655
656void Identifier::prepareWrite()
657{

Callers 2

IdentifierMethod · 0.80
identifier.cppFile · 0.80

Calls 4

indexMethod · 0.45
itemFromIndexMethod · 0.45

Tested by

no test coverage detected