Display diagnostics from header files

This commit is contained in:
Fangrui Song 2018-06-23 10:50:08 -07:00
parent a96d9613f4
commit b6375de2f3

View File

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