C++: FastPreprocessor: Add only includes if there are none

For the case that the document is based upon another one (see
Snapshot::preprocessedDocument(), the only client of FastPreprocessor)
the FastPreprocessor added extra unresolved includes.

Change-Id: I0a7719fa8806af59f87a48bc6914270efd653e84
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-01-13 14:12:17 +01:00
parent 8f988a0a21
commit dbeae8cb43
3 changed files with 9 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ class CPLUSPLUS_EXPORT FastPreprocessor: public Client
Preprocessor _preproc;
QSet<QString> _merged;
Document::Ptr _currentDoc;
bool _addIncludesToCurrentDoc;
void mergeEnvironment(const QString &fileName);