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

Method getIcon

kdevplatform/language/classmodel/classmodelnode.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool IdentifierNode::getIcon(QIcon& a_resultIcon)
46{
47 DUChainReadLocker readLock(DUChain::lock());
48
49 Declaration* decl = declaration();
50 if (decl)
51 a_resultIcon = DUChainUtils::iconForDeclaration(decl);
52
53 return !a_resultIcon.isNull();
54}
55
56//////////////////////////////////////////////////////////////////////////////
57//////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

isNullMethod · 0.80
accessPolicyMethod · 0.80
isTypeAliasMethod · 0.80

Tested by

no test coverage detected