CppTools: Move WorkingCopy to new cppworkingcopy.{h,cpp}

Change-Id: I447acf28849bffb52c1e6b6eafdde221ec0b179e
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-07-30 16:29:02 +02:00
committed by Erik Verbruggen
parent 077bbf6803
commit b8a6a4dd4e
29 changed files with 186 additions and 78 deletions

View File

@@ -68,6 +68,7 @@
#include <cplusplus/findcdbbreakpoint.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <cpptools/cppworkingcopy.h>
#include <QDir>
#include <QMessageBox>
@@ -2796,18 +2797,18 @@ class BreakpointCorrectionContext
{
public:
explicit BreakpointCorrectionContext(const CPlusPlus::Snapshot &s,
const CppTools::CppModelManagerInterface::WorkingCopy &workingCopy) :
const CppTools::WorkingCopy &workingCopy) :
m_snapshot(s), m_workingCopy(workingCopy) {}
unsigned fixLineNumber(const QString &fileName, unsigned lineNumber) const;
private:
const CPlusPlus::Snapshot m_snapshot;
CppTools::CppModelManagerInterface::WorkingCopy m_workingCopy;
CppTools::WorkingCopy m_workingCopy;
};
static CPlusPlus::Document::Ptr getParsedDocument(const QString &fileName,
const CppTools::CppModelManagerInterface::WorkingCopy &workingCopy,
const CppTools::WorkingCopy &workingCopy,
const CPlusPlus::Snapshot &snapshot)
{
QByteArray src;