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

Method imports

kdevplatform/language/duchain/ducontext.cpp:169–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169bool DUContextDynamicData::imports(const DUContext* context, const TopDUContext* source,
170 QSet<const DUContextDynamicData*>* recursionGuard) const
171{
172 if (this == context->m_dynamicData)
173 return true;
174
175 if (!Algorithm::insert(*recursionGuard, this).inserted) {
176 return false;
177 }
178
179 FOREACH_FUNCTION(const DUContext::Import& ctx, d_func()->m_importedContexts) {
180 DUContext* import = ctx.context(source);
181 if (import == context || (import && import->m_dynamicData->imports(context, source, recursionGuard)))
182 return true;
183 }
184
185 return false;
186}
187
188inline bool isContextTemporary(uint index)
189{

Callers 5

doMoreCleanupMethod · 0.45
FOREACH_FUNCTIONFunction · 0.45
verifyMethod · 0.45
allImportedFilesFunction · 0.45
typeForDeclarationMethod · 0.45

Calls 3

insertFunction · 0.85
topContextFunction · 0.85
reserveMethod · 0.45

Tested by 1

verifyMethod · 0.36