This avoids duplicated scopes in the query e.g. when anonymous namespace
is present.
Details
Details
- Reviewers
sammccall
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 24378 Build 24377: arc lint + arc unit
Event Timeline
clangd/CodeComplete.cpp | ||
---|---|---|
563 | Anonymous namespace inside other namespaces will also produce duplicate scopes. |
clangd/CodeComplete.cpp | ||
---|---|---|
563 | printNamespaceScope() will return "" for all anonymous namespaces, which should be covered as well. |
clangd/CodeComplete.cpp | ||
---|---|---|
563 | I don't think that's the case. |
Anonymous namespace inside other namespaces will also produce duplicate scopes.
Maybe simply remove the duplicates from the vector before we return it?