aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/FastPreprocessor.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-07-16 11:25:15 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-07-24 12:25:02 +0200
commit6a9ae7e25f6841cfd56be5560ecde9de52378526 (patch)
tree40e2715f6874e2637eeec6807075170437878046 /src/libs/cplusplus/FastPreprocessor.h
parent4e9d3b044e996f45909797ba3a3a88b22967d62e (diff)
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>
Diffstat (limited to 'src/libs/cplusplus/FastPreprocessor.h')
-rw-r--r--src/libs/cplusplus/FastPreprocessor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/cplusplus/FastPreprocessor.h b/src/libs/cplusplus/FastPreprocessor.h
index df19c4dcdf5..b4a14cfdb42 100644
--- a/src/libs/cplusplus/FastPreprocessor.h
+++ b/src/libs/cplusplus/FastPreprocessor.h
@@ -57,7 +57,8 @@ public:
QByteArray run(Document::Ptr newDoc, const QByteArray &source);
// CPlusPlus::Client
- virtual void sourceNeeded(unsigned line, const QString &fileName, IncludeType mode);
+ virtual void sourceNeeded(unsigned line, const QString &fileName, IncludeType mode,
+ const QStringList &initialIncludes = QStringList());
virtual void macroAdded(const Macro &);