Clang: Shorten debug output

...by writing unsaved file content and project part arguments to
temporary dirs.

Change-Id: Ic411700cb3da756788bbb315851ff38b0100fe71
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-07-14 14:54:01 +02:00
parent a3056e8922
commit b4464d8f4b
5 changed files with 163 additions and 6 deletions

View File

@@ -30,6 +30,8 @@
#include "filecontainer.h"
#include "clangbackendipcdebugutils.h"
#include <QDataStream>
#include <QDebug>
@@ -108,9 +110,13 @@ QDebug operator<<(QDebug debug, const FileContainer &container)
<< ", "
<< container.projectPartId();
if (container.hasUnsavedFileContent())
if (container.hasUnsavedFileContent()) {
const Utf8String fileWithContent = debugWriteFileForInspection(
container.unsavedFileContent(),
debugId(container));
debug.nospace() << ", "
<< container.unsavedFileContent();
<< "<" << fileWithContent << ">";
}
debug.nospace() << ")";