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:
@@ -75,21 +75,23 @@ QDebug operator<<(QDebug debug, const CodeCompletionChunk &chunk)
|
||||
return debug;
|
||||
}
|
||||
|
||||
void PrintTo(const CodeCompletionChunk &chunk, ::std::ostream* os)
|
||||
std::ostream &operator<<(std::ostream &os, const CodeCompletionChunk &chunk)
|
||||
{
|
||||
*os << "{";
|
||||
*os << completionChunkKindToString(chunk.kind()) << ", ";
|
||||
*os << chunk.text().constData();
|
||||
os << "("
|
||||
<< chunk.kind() << ", "
|
||||
<< chunk.text();
|
||||
|
||||
if (chunk.isOptional())
|
||||
*os << ", optional";
|
||||
os << ", optional";
|
||||
|
||||
*os << "}";
|
||||
os << ")";
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
void PrintTo(const CodeCompletionChunk::Kind &kind, ::std::ostream* os)
|
||||
std::ostream &operator<<(std::ostream &os, const CodeCompletionChunk::Kind &kind)
|
||||
{
|
||||
*os << completionChunkKindToString(kind);
|
||||
return os << completionChunkKindToString(kind);
|
||||
}
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user