forked from qt-creator/qt-creator
Clang: Inline FixItContainer
Change-Id: I00067803e5cbf5b0183dcefe11deaf9b78a45964 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -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("
|
||||
|
||||
Reference in New Issue
Block a user