Preprocess the source file.

This commit is contained in:
Roberto Raggi
2010-06-22 09:23:01 +02:00
parent f1cd284a33
commit a19f802529

View File

@@ -69,7 +69,8 @@ Document::Ptr CppRefactoringChanges::parsedDocumentForFile(const QString &fileNa
file.close();
}
doc = m_snapshot.documentFromSource(source.toLatin1(), fileName);
const QByteArray contents = m_snapshot.preprocessedCode(source, fileName);
doc = m_snapshot.documentFromSource(contents, fileName);
doc->check();
return doc;
}