Disable macro expansion when preprocessing in fast-mode.

This commit is contained in:
Roberto Raggi
2009-07-04 20:54:31 +02:00
parent 93cdff1818
commit 2f649be146
3 changed files with 23 additions and 4 deletions

View File

@@ -38,14 +38,14 @@ FastPreprocessor::FastPreprocessor(const Snapshot &snapshot)
QByteArray FastPreprocessor::run(QString fileName, const QString &source)
{
#ifdef QTCREATOR_WITH_MERGED_ENVIRONMENT
_preproc.setExpandMacros(false);
if (Document::Ptr doc = _snapshot.value(fileName)) {
_merged.insert(fileName);
foreach (const Document::Include &i, doc->includes())
mergeEnvironment(i.fileName());
}
#endif
const QByteArray preprocessed = _preproc(fileName, source);
return preprocessed;