cxx: Only log clang invocation errors when present

This commit is contained in:
Eberhard Graether
2018-10-16 17:08:59 +02:00
parent 73007931b2
commit cfdd332a18
+4 -1
View File
@@ -193,7 +193,10 @@ void CxxParser::runTool(clang::tooling::CompilationDatabase* compilationDatabase
{
const ClangInvocationInfo info = getClangInvocationString(compilationDatabase);
LOG_INFO("Clang Invocation: " + info.invocation);
LOG_INFO("Clang Invocation errors: " + info.errors);
if (!info.errors.empty())
{
LOG_INFO("Clang Invocation errors: " + info.errors);
}
}
ASTActionFactory actionFactory(m_client, canonicalFilePathCache, m_indexerStateInfo);