This commit is contained in:
Jacob Dufault 2017-09-21 23:48:05 -07:00
parent bd8582e718
commit 511bbbe391

View File

@ -438,6 +438,10 @@ void CompletionQueryMain(ClangCompleteManager* completion_manager) {
// Emit diagnostics. // Emit diagnostics.
if (request->emit_diagnostics) { if (request->emit_diagnostics) {
// TODO: before emitting diagnostics check if we have another completion
// request and think about servicing that first, because it may be much
// faster than reparsing the document.
timer.Reset(); timer.Reset();
clang_reparseTranslationUnit( clang_reparseTranslationUnit(
session->tu->cx_tu, unsaved.size(), unsaved.data(), session->tu->cx_tu, unsaved.size(), unsaved.data(),