forked from qt-creator/qt-creator
CppTools: Auto-include pre-compiled headers
So far the pre-compiled headers were processed (thus defines from those headers were visible), but the actual includes for the documents were not added, which is necessary for lookup/completion. Note that this will be only done if pre-compiled headers are not ignored (Options > C++ > Code Model > [] Ignore pre-compiled headers). Change-Id: I54a8e6b00597af164d958e3e9f2a1075ea187788 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
||||
void setHeaderPaths(const ProjectPart::HeaderPaths &headerPaths);
|
||||
void setTodo(const QStringList &files);
|
||||
|
||||
void run(const QString &fileName);
|
||||
void run(const QString &fileName, const QStringList &initialIncludes = QStringList());
|
||||
void removeFromCache(const QString &fileName);
|
||||
void resetEnvironment();
|
||||
|
||||
@@ -80,7 +80,8 @@ private:
|
||||
void markAsIncludeGuard(const QByteArray ¯oName) QTC_OVERRIDE;
|
||||
void startSkippingBlocks(unsigned utf16charsOffset) QTC_OVERRIDE;
|
||||
void stopSkippingBlocks(unsigned utf16charsOffset) QTC_OVERRIDE;
|
||||
void sourceNeeded(unsigned line, const QString &fileName, IncludeType type) QTC_OVERRIDE;
|
||||
void sourceNeeded(unsigned line, const QString &fileName, IncludeType type,
|
||||
const QStringList &initialIncludes) QTC_OVERRIDE;
|
||||
|
||||
private:
|
||||
CPlusPlus::Snapshot m_snapshot;
|
||||
|
||||
Reference in New Issue
Block a user