forked from qt-creator/qt-creator
Clang: Inline AliveMessage
Change-Id: Ibe10ff1324bc83d7cc8ddd6ad69bef077d3f1ec8 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -25,26 +25,10 @@
|
||||
|
||||
#include "cmbalivemessage.h"
|
||||
|
||||
#include <QDataStream>
|
||||
#include <QDebug>
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
QDataStream &operator<<(QDataStream &out, const AliveMessage &/*message*/)
|
||||
{
|
||||
return out;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &in, AliveMessage &/*message*/)
|
||||
{
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator==(const AliveMessage &/*first*/, const AliveMessage &/*second*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug debug, const AliveMessage &/*message*/)
|
||||
{
|
||||
return debug.nospace() << "AliveMessage()";
|
||||
|
@@ -27,15 +27,28 @@
|
||||
|
||||
#include "clangbackendipc_global.h"
|
||||
|
||||
#include <QDataStream>
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
class CMBIPC_EXPORT AliveMessage
|
||||
class AliveMessage
|
||||
{
|
||||
};
|
||||
public:
|
||||
friend QDataStream &operator<<(QDataStream &out, const AliveMessage &/*message*/)
|
||||
{
|
||||
return out;
|
||||
}
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const AliveMessage &message);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, AliveMessage &message);
|
||||
CMBIPC_EXPORT bool operator==(const AliveMessage &first, const AliveMessage &second);
|
||||
friend QDataStream &operator>>(QDataStream &in, AliveMessage &/*message*/)
|
||||
{
|
||||
return in;
|
||||
}
|
||||
|
||||
friend bool operator==(const AliveMessage &/*first*/, const AliveMessage &/*second*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const AliveMessage &message);
|
||||
|
||||
|
Reference in New Issue
Block a user