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