forked from qt-creator/qt-creator
CppTools: Move DependencyTable to Snapshot
It logically depends on the Snapshot and has a related lifetime. Keeping it in the Snapshot avoids some code compelxity. Change-Id: I24ee4483b44d9b0d7f2e4d494ae7ea624b949f9c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
#ifndef CPPFINDREFERENCES_H
|
||||
#define CPPFINDREFERENCES_H
|
||||
|
||||
#include <cplusplus/DependencyTable.h>
|
||||
#include <cplusplus/FindUsages.h>
|
||||
|
||||
#include <QMutex>
|
||||
@@ -76,11 +75,6 @@ public:
|
||||
void findMacroUses(const CPlusPlus::Macro ¯o);
|
||||
void renameMacroUses(const CPlusPlus::Macro ¯o, const QString &replacement = QString());
|
||||
|
||||
CPlusPlus::DependencyTable updateDependencyTable(CPlusPlus::Snapshot snapshot);
|
||||
|
||||
public slots:
|
||||
void flushDependencyTable();
|
||||
|
||||
private slots:
|
||||
void displayResults(int first, int last);
|
||||
void searchFinished();
|
||||
@@ -97,8 +91,6 @@ private:
|
||||
bool replace);
|
||||
void findAll_helper(Core::SearchResult *search, CPlusPlus::Symbol *symbol,
|
||||
const CPlusPlus::LookupContext &context);
|
||||
CPlusPlus::DependencyTable dependencyTable() const;
|
||||
void setDependencyTable(const CPlusPlus::DependencyTable &newTable);
|
||||
void createWatcher(const QFuture<CPlusPlus::Usage> &future, Core::SearchResult *search);
|
||||
CPlusPlus::Symbol *findSymbol(const CppFindReferencesParameters ¶meters,
|
||||
const CPlusPlus::Snapshot &snapshot, CPlusPlus::LookupContext *context);
|
||||
@@ -106,9 +98,6 @@ private:
|
||||
private:
|
||||
QPointer<CppModelManagerInterface> m_modelManager;
|
||||
QMap<QFutureWatcher<CPlusPlus::Usage> *, QPointer<Core::SearchResult> > m_watchers;
|
||||
|
||||
mutable QMutex m_depsLock;
|
||||
CPlusPlus::DependencyTable m_deps;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user