diff --git a/src/libs/clangbackendipc/requestdocumentannotations.cpp b/src/libs/clangbackendipc/requestdocumentannotations.cpp index 077c9da85ca..81f54cdb318 100644 --- a/src/libs/clangbackendipc/requestdocumentannotations.cpp +++ b/src/libs/clangbackendipc/requestdocumentannotations.cpp @@ -25,42 +25,12 @@ #include "requestdocumentannotations.h" -#include #include #include namespace ClangBackEnd { -RequestDocumentAnnotationsMessage::RequestDocumentAnnotationsMessage(const FileContainer &file) - : fileContainer_(file) -{ -} - -const FileContainer RequestDocumentAnnotationsMessage::fileContainer() const -{ - return fileContainer_; -} - -QDataStream &operator<<(QDataStream &out, const RequestDocumentAnnotationsMessage &message) -{ - out << message.fileContainer_; - - return out; -} - -QDataStream &operator>>(QDataStream &in, RequestDocumentAnnotationsMessage &message) -{ - in >> message.fileContainer_; - - return in; -} - -bool operator==(const RequestDocumentAnnotationsMessage &first, const RequestDocumentAnnotationsMessage &second) -{ - return first.fileContainer_ == second.fileContainer_; -} - QDebug operator<<(QDebug debug, const RequestDocumentAnnotationsMessage &message) { debug.nospace() << "RequestDocumentAnnotationsMessage(" diff --git a/src/libs/clangbackendipc/requestdocumentannotations.h b/src/libs/clangbackendipc/requestdocumentannotations.h index 471b6e60c66..175fb1a6965 100644 --- a/src/libs/clangbackendipc/requestdocumentannotations.h +++ b/src/libs/clangbackendipc/requestdocumentannotations.h @@ -29,28 +29,43 @@ namespace ClangBackEnd { -class CMBIPC_EXPORT RequestDocumentAnnotationsMessage +class RequestDocumentAnnotationsMessage { - friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RequestDocumentAnnotationsMessage &message); - friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RequestDocumentAnnotationsMessage &message); - friend CMBIPC_EXPORT bool operator==(const RequestDocumentAnnotationsMessage &first, const RequestDocumentAnnotationsMessage &second); - friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const RequestDocumentAnnotationsMessage &message); - friend void PrintTo(const RequestDocumentAnnotationsMessage &message, ::std::ostream* os); - public: RequestDocumentAnnotationsMessage() = default; - RequestDocumentAnnotationsMessage(const FileContainer &fileContainer); + RequestDocumentAnnotationsMessage(const FileContainer &fileContainer) + : fileContainer_(fileContainer) + { + } - const FileContainer fileContainer() const; + const FileContainer fileContainer() const + { + return fileContainer_; + } + + friend QDataStream &operator<<(QDataStream &out, const RequestDocumentAnnotationsMessage &message) + { + out << message.fileContainer_; + + return out; + } + + friend QDataStream &operator>>(QDataStream &in, RequestDocumentAnnotationsMessage &message) + { + in >> message.fileContainer_; + + return in; + } + + friend bool operator==(const RequestDocumentAnnotationsMessage &first, const RequestDocumentAnnotationsMessage &second) + { + return first.fileContainer_ == second.fileContainer_; + } private: FileContainer fileContainer_; }; -CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RequestDocumentAnnotationsMessage &message); -CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RequestDocumentAnnotationsMessage &message); -CMBIPC_EXPORT bool operator==(const RequestDocumentAnnotationsMessage &first, const RequestDocumentAnnotationsMessage &second); - CMBIPC_EXPORT QDebug operator<<(QDebug debug, const RequestDocumentAnnotationsMessage &message); void PrintTo(const RequestDocumentAnnotationsMessage &message, ::std::ostream* os);