This commit is contained in:
Fangrui Song 2017-12-24 13:28:53 -08:00
parent 4b9bc342f5
commit dced34dd58

View File

@ -1043,8 +1043,10 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
/* fallthrough */ /* fallthrough */
// TODO Add other containers not covered by IsFunctionCallContext // TODO Add other containers not covered by IsFunctionCallContext
case CXCursor_ClassTemplate: case CXCursor_ClassTemplate:
return ClangCursor::VisitResult::Continue; break;
case CXCursor_OverloadedDeclRef: { case CXCursor_OverloadedDeclRef: {
break; // TODO data->db seems to be incorrect and may cause deadlock
unsigned num_overloaded = clang_getNumOverloadedDecls(cursor.cx_cursor); unsigned num_overloaded = clang_getNumOverloadedDecls(cursor.cx_cursor);
for (unsigned i = 0; i != num_overloaded; i++) { for (unsigned i = 0; i != num_overloaded; i++) {
ClangCursor overloaded = clang_getOverloadedDecl(cursor.cx_cursor, i); ClangCursor overloaded = clang_getOverloadedDecl(cursor.cx_cursor, i);
@ -1066,9 +1068,10 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
} }
} }
} }
return ClangCursor::VisitResult::Continue; break;
} }
} }
return ClangCursor::VisitResult::Continue;
} }
} // namespace } // namespace