Display diagnostics from header files

This commit is contained in:
Fangrui Song 2018-06-23 10:50:08 -07:00
parent c5dc759831
commit 559a68a261

View File

@ -604,7 +604,7 @@ void DiagnosticQueryMain(ClangCompleteManager* completion_manager) {
if (diagnostic && diagnostic->range.start.line >= 0)
ls_diagnostics.push_back(*diagnostic);
}
completion_manager->on_diagnostic_(session->file.filename, ls_diagnostics);
completion_manager->on_diagnostic_(path, ls_diagnostics);
}
}