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

Method isDestructor

kdevplatform/language/duchain/classfunctiondeclaration.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool ClassFunctionDeclaration::isDestructor() const
189{
190 DUContext* ctx = context();
191 QString id = identifier().toString();
192 return ctx && ctx->type() == DUContext::Class && id.startsWith(QLatin1Char('~')) &&
193 QStringView{id}.sliced(1) == ctx->localScopeIdentifier().top().toString();
194}
195
196uint ClassFunctionDeclaration::additionalIdentity() const
197{

Callers 10

htmlFunctionMethod · 0.80
declarationDetailsMethod · 0.80
startCollectingMethod · 0.80
FunctionNodeMethod · 0.80
FunctionDescriptionMethod · 0.80
dataMethod · 0.80
isDestructorFunction · 0.80
addBaseClassesMethod · 0.80

Calls 5

contextFunction · 0.85
topMethod · 0.80
localScopeIdentifierMethod · 0.80
toStringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected