mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
[indexer] Remove IsLocalSemanticContainer check in qualified names
This commit is contained in:
parent
ea323a3b4b
commit
ba4a5e91cb
@ -87,8 +87,7 @@ struct NamespaceHelper {
|
|||||||
ClangCursor cursor = container->cursor;
|
ClangCursor cursor = container->cursor;
|
||||||
std::vector<ClangCursor> namespaces;
|
std::vector<ClangCursor> namespaces;
|
||||||
std::string qualifier;
|
std::string qualifier;
|
||||||
while (cursor.get_kind() != CXCursor_TranslationUnit &&
|
while (cursor.get_kind() != CXCursor_TranslationUnit) {
|
||||||
!IsLocalSemanticContainer(cursor.get_kind())) {
|
|
||||||
auto it = container_cursor_to_qualified_name.find(cursor);
|
auto it = container_cursor_to_qualified_name.find(cursor);
|
||||||
if (it != container_cursor_to_qualified_name.end()) {
|
if (it != container_cursor_to_qualified_name.end()) {
|
||||||
qualifier = it->second;
|
qualifier = it->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user