Clang: Cleanup IPC code

Change-Id: I29571801b4093337e2c7cc1eec51cfcd07b3bdc5
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Marco Bubke
2017-06-12 20:03:34 +02:00
parent f97875a870
commit 3fb25b28e3
106 changed files with 1207 additions and 1211 deletions

View File

@@ -54,19 +54,21 @@ QDebug operator<<(QDebug debug, const FileContainer &container)
return debug;
}
void PrintTo(const FileContainer &container, ::std::ostream* os)
std::ostream &operator<<(std::ostream &os, const FileContainer &container)
{
*os << "FileContainer("
<< container.filePath().constData() << ", "
<< container.projectPartId().constData() << ", "
<< container.fileArguments().constData() << ", "
os << "("
<< container.filePath() << ", "
<< container.projectPartId() << ", "
<< container.fileArguments() << ", "
<< container.documentRevision();
if (container.hasUnsavedFileContent())
*os << ", "
<< container.unsavedFileContent().constData();
os << ", "
<< container.unsavedFileContent();
*os << ")";
os << ")";
return os;
}
} // namespace ClangBackEnd