forked from qt-creator/qt-creator
Clang: Inline EndMessage
Change-Id: Id24d5f786e5f47798c2d1a8e46081dfcd7f67913 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -25,28 +25,12 @@
|
|||||||
|
|
||||||
#include "cmbendmessage.h"
|
#include "cmbendmessage.h"
|
||||||
|
|
||||||
#include <QDataStream>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
namespace ClangBackEnd {
|
namespace ClangBackEnd {
|
||||||
|
|
||||||
QDataStream &operator<<(QDataStream &out, const EndMessage &/*message*/)
|
|
||||||
{
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
QDataStream &operator>>(QDataStream &in, EndMessage &/*message*/)
|
|
||||||
{
|
|
||||||
return in;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const EndMessage &/*first*/, const EndMessage &/*second*/)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
QDebug operator<<(QDebug debug, const EndMessage &/*message*/)
|
QDebug operator<<(QDebug debug, const EndMessage &/*message*/)
|
||||||
{
|
{
|
||||||
return debug.nospace() << "EndMessage()";
|
return debug.nospace() << "EndMessage()";
|
||||||
|
@@ -26,17 +26,31 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "clangbackendipc_global.h"
|
#include "clangbackendipc_global.h"
|
||||||
#include <ostream>
|
|
||||||
|
#include <QDataStream>
|
||||||
|
|
||||||
|
#include <iosfwd>
|
||||||
|
|
||||||
namespace ClangBackEnd {
|
namespace ClangBackEnd {
|
||||||
|
|
||||||
class CMBIPC_EXPORT EndMessage
|
class EndMessage
|
||||||
{
|
{
|
||||||
};
|
public:
|
||||||
|
friend QDataStream &operator<<(QDataStream &out, const EndMessage &/*message*/)
|
||||||
|
{
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const EndMessage &message);
|
friend QDataStream &operator>>(QDataStream &in, EndMessage &/*message*/)
|
||||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, EndMessage &message);
|
{
|
||||||
CMBIPC_EXPORT bool operator==(const EndMessage &first, const EndMessage &second);
|
return in;
|
||||||
|
}
|
||||||
|
|
||||||
|
friend bool operator==(const EndMessage &/*first*/, const EndMessage &/*second*/)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const EndMessage &message);
|
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const EndMessage &message);
|
||||||
void PrintTo(const EndMessage &message, ::std::ostream* os);
|
void PrintTo(const EndMessage &message, ::std::ostream* os);
|
||||||
|
Reference in New Issue
Block a user