forked from qt-creator/qt-creator
Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's current state.
This change removes a number of wrong usages of the CppModelManager::documents()/document().
This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
||||
LookupContext(Symbol *symbol,
|
||||
Document::Ptr expressionDocument,
|
||||
Document::Ptr thisDocument,
|
||||
const QMap<QString, Document::Ptr> &documents);
|
||||
const Snapshot &documents);
|
||||
|
||||
LookupContext(Symbol *symbol,
|
||||
const LookupContext &context);
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
QList<Symbol *> resolveClassOrNamespace(Name *name) const
|
||||
{ return resolveClassOrNamespace(name, visibleScopes()); }
|
||||
|
||||
QMap<QString, Document::Ptr> documents() const
|
||||
Snapshot snapshot() const
|
||||
{ return _documents; }
|
||||
|
||||
enum ResolveMode {
|
||||
@@ -140,7 +140,7 @@ private:
|
||||
Document::Ptr _thisDocument;
|
||||
|
||||
// All documents.
|
||||
QMap<QString, Document::Ptr> _documents;
|
||||
Snapshot _documents;
|
||||
|
||||
// Visible scopes.
|
||||
QList<Scope *> _visibleScopes;
|
||||
|
||||
Reference in New Issue
Block a user