Clang: Inline AliveMessage

Change-Id: Ibe10ff1324bc83d7cc8ddd6ad69bef077d3f1ec8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Marco Bubke
2016-07-19 11:35:43 +02:00
committed by Tim Jenssen
parent df1a197aee
commit 3177bbe01c
2 changed files with 18 additions and 21 deletions

View File

@@ -25,26 +25,10 @@
#include "cmbalivemessage.h" #include "cmbalivemessage.h"
#include <QDataStream>
#include <QDebug> #include <QDebug>
namespace ClangBackEnd { 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*/) QDebug operator<<(QDebug debug, const AliveMessage &/*message*/)
{ {
return debug.nospace() << "AliveMessage()"; return debug.nospace() << "AliveMessage()";

View File

@@ -27,15 +27,28 @@
#include "clangbackendipc_global.h" #include "clangbackendipc_global.h"
#include <QDataStream>
namespace ClangBackEnd { 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); friend QDataStream &operator>>(QDataStream &in, AliveMessage &/*message*/)
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, AliveMessage &message); {
CMBIPC_EXPORT bool operator==(const AliveMessage &first, const AliveMessage &second); return in;
}
friend bool operator==(const AliveMessage &/*first*/, const AliveMessage &/*second*/)
{
return true;
}
};
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const AliveMessage &message); CMBIPC_EXPORT QDebug operator<<(QDebug debug, const AliveMessage &message);