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:
@@ -50,7 +50,6 @@
|
||||
#include <cplusplus/ASTPath.h>
|
||||
#include <cplusplus/CPlusPlusForwardDeclarations.h>
|
||||
#include <cplusplus/CppRewriter.h>
|
||||
#include <cplusplus/DependencyTable.h>
|
||||
#include <cplusplus/TypeOfExpression.h>
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
@@ -1579,9 +1578,7 @@ public:
|
||||
fwdHeaders.insert(doc);
|
||||
}
|
||||
|
||||
DependencyTable dep;
|
||||
dep.build(fwdHeaders);
|
||||
QStringList candidates = dep.dependencyTable().value(headerFile);
|
||||
QStringList candidates = fwdHeaders.filesDependingOn(headerFile);
|
||||
|
||||
const QString className = QString::fromUtf8(k->identifier()->chars());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user