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

Method comment

kdevplatform/language/duchain/declaration.cpp:173–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173QByteArray Declaration::comment() const
174{
175 DUCHAIN_D(Declaration);
176 if (!d->m_comment)
177 return QByteArray();
178
179 return LockedItemRepository::read<DeclarationComment>([d](const Repositories::StringRepository& repo) {
180 return Repositories::arrayFromItem(repo.itemFromIndex(d->m_comment));
181 });
182}
183
184void Declaration::setComment(const QByteArray& str)
185{

Callers 5

htmlMethod · 0.80
visitMethod · 0.80
testCommentsMethod · 0.80
testFunctionMethod · 0.80
testPropertyMethod · 0.80

Calls 3

QByteArrayClass · 0.70
arrayFromItemFunction · 0.50
itemFromIndexMethod · 0.45

Tested by 4

visitMethod · 0.64
testCommentsMethod · 0.64
testFunctionMethod · 0.64
testPropertyMethod · 0.64