[indexer] Remove IsLocalSemanticContainer check in qualified names

This commit is contained in:
Fangrui Song 2017-12-22 09:21:53 -08:00
parent ea323a3b4b
commit ba4a5e91cb

View File

@ -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;