Clang: Inline FixItContainer

Change-Id: I00067803e5cbf5b0183dcefe11deaf9b78a45964
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Marco Bubke
2016-07-19 13:09:36 +02:00
committed by Tim Jenssen
parent 5ccc1ac14a
commit 5ae44be34f
2 changed files with 38 additions and 52 deletions

View File

@@ -25,51 +25,12 @@
#include "fixitcontainer.h"
#include <QDataStream>
#include <QDebug>
#include <ostream>
namespace ClangBackEnd {
FixItContainer::FixItContainer(const Utf8String &text,
const SourceRangeContainer &range)
: range_(range),
text_(text)
{
}
const Utf8String &FixItContainer::text() const
{
return text_;
}
const SourceRangeContainer &FixItContainer::range() const
{
return range_;
}
QDataStream &operator<<(QDataStream &out, const FixItContainer &container)
{
out << container.text_;
out << container.range_;
return out;
}
QDataStream &operator>>(QDataStream &in, FixItContainer &container)
{
in >> container.text_;
in >> container.range_;
return in;
}
bool operator==(const FixItContainer &first, const FixItContainer &second)
{
return first.text_ == second.text_ && first.range_ == second.range_;
}
QDebug operator<<(QDebug debug, const FixItContainer &container)
{
debug.nospace() << "FixItContainer("