Skip to content
Snippets Groups Projects
Commit a19f8025 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Preprocess the source file.

parent f1cd284a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment