Commit a19f8025 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Preprocess the source file.

parent f1cd284a
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment