forked from qt-creator/qt-creator
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:
@@ -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() << ")";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user