Clang: Add file name to qtc.clangbackend.jobs output

This helps to overview debug output in case several files are involved.

Change-Id: I12ee23bd7cec4cd344746ef1323afb3f0ab54d4b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-12-13 17:24:32 +01:00
parent e0bbb0a0bb
commit d89bd9ff5c
6 changed files with 30 additions and 20 deletions

View File

@@ -35,6 +35,8 @@
#include <utils/algorithm.h>
#include <utils/qtcassert.h>
#include <QFileInfo>
namespace ClangBackEnd {
class DocumentProcessorData
@@ -47,7 +49,7 @@ public:
ClangCodeModelClientInterface &client)
: document(document)
, documents(documents)
, jobs(documents, unsavedFiles, projects, client)
, jobs(documents, unsavedFiles, projects, client, QFileInfo(document.filePath()).fileName())
, supportiveTranslationUnitInitializer(document, jobs)
{
const auto isDocumentClosedChecker = [this](const Utf8String &filePath,