ilya-biryukov added inline comments.
================
Comment at: clangd/CodeComplete.cpp:563
for (auto *Context : CCContext.getVisitedContexts()) {
- if (isa<TranslationUnitDecl>(Context))
+ if (isa<TranslationUnitDecl>(Context)) {
Info.AccessibleScopes.push_back(""); // global namespace
----------------
Anonymous namespace inside other namespaces will also produce duplicate scopes.
Maybe simply remove the duplicates from the vector before we return it?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53926
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits