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

Method isConstructor

kdevplatform/language/duchain/classfunctiondeclaration.cpp:180–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool ClassFunctionDeclaration::isConstructor() const
181{
182 DUContext* ctx = context();
183 if (ctx && ctx->type() == DUContext::Class && ctx->localScopeIdentifier().top().nameEquals(identifier()))
184 return true;
185 return false;
186}
187
188bool ClassFunctionDeclaration::isDestructor() const
189{

Callers 11

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

Calls 5

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

Tested by

no test coverage detected