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

Function contextImportDecl

plugins/clang/duchain/builder.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void contextImportDecl(DUContext* context, const DeclarationPointer& decl)
171{
172 auto top = context->topContext();
173 if (auto import = decl->logicalInternalContext(top)) {
174 context->addImportedParentContext(import);
175 context->topContext()->updateImportsCache();
176 }
177}
178
179//END helpers
180

Callers 2

createContextMethod · 0.85
buildCXXBaseSpecifierMethod · 0.85

Calls 4

updateImportsCacheMethod · 0.80
topContextMethod · 0.45

Tested by

no test coverage detected