forked from qt-creator/qt-creator
Add cleanupSemantics method, produce nicer diff output
Change-Id: I877e06c930c219ad23af4b7c6078d8c8db3706e9 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -72,6 +72,8 @@ public:
|
||||
void setDiffMode(DiffMode mode);
|
||||
bool diffMode() const;
|
||||
QList<Diff> merge(const QList<Diff> &diffList);
|
||||
QList<Diff> cleanupSemantics(const QList<Diff> &diffList);
|
||||
|
||||
private:
|
||||
QList<Diff> preprocess1AndDiff(const QString &text1, const QString &text2);
|
||||
QList<Diff> preprocess2AndDiff(const QString &text1, const QString &text2);
|
||||
@@ -93,6 +95,8 @@ private:
|
||||
int subTextStart);
|
||||
int commonPrefix(const QString &text1, const QString &text2) const;
|
||||
int commonSuffix(const QString &text1, const QString &text2) const;
|
||||
int commonOverlap(const QString &text1, const QString &text2) const;
|
||||
QList<Diff> cleanupOverlaps(const QList<Diff> &diffList);
|
||||
DiffMode m_diffMode;
|
||||
DiffMode m_currentDiffMode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user