Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Reopen #174
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Dec 24, 2017
1 parent 5e1008e commit 8e194af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/indexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,10 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
/* fallthrough */
// TODO Add other containers not covered by IsFunctionCallContext
case CXCursor_ClassTemplate:
return ClangCursor::VisitResult::Continue;
break;
case CXCursor_OverloadedDeclRef: {
break; // TODO data->db seems to be incorrect and may cause deadlock

unsigned num_overloaded = clang_getNumOverloadedDecls(cursor.cx_cursor);
for (unsigned i = 0; i != num_overloaded; i++) {
ClangCursor overloaded = clang_getOverloadedDecl(cursor.cx_cursor, i);
Expand All @@ -1066,9 +1068,10 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
}
}
}
return ClangCursor::VisitResult::Continue;
break;
}
}
return ClangCursor::VisitResult::Continue;
}

} // namespace
Expand Down

0 comments on commit 8e194af

Please sign in to comment.