forked from OSchip/llvm-project
parent
312fcc116b
commit
fa41add2e5
|
@ -562,7 +562,7 @@ getQueryScopes(CodeCompletionContext &CCContext, const Sema &CCSema,
|
||||||
for (auto *Context : CCContext.getVisitedContexts()) {
|
for (auto *Context : CCContext.getVisitedContexts()) {
|
||||||
if (isa<TranslationUnitDecl>(Context))
|
if (isa<TranslationUnitDecl>(Context))
|
||||||
Info.AccessibleScopes.push_back(""); // global namespace
|
Info.AccessibleScopes.push_back(""); // global namespace
|
||||||
else if (const auto *NS = dyn_cast<NamespaceDecl>(Context))
|
else if (isa<NamespaceDecl>(Context))
|
||||||
Info.AccessibleScopes.push_back(printNamespaceScope(*Context));
|
Info.AccessibleScopes.push_back(printNamespaceScope(*Context));
|
||||||
}
|
}
|
||||||
return Info;
|
return Info;
|
||||||
|
|
Loading…
Reference in New Issue