forked from qt-creator/qt-creator
Preprocess the source file.
This commit is contained in:
@@ -69,7 +69,8 @@ Document::Ptr CppRefactoringChanges::parsedDocumentForFile(const QString &fileNa
|
|||||||
file.close();
|
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();
|
doc->check();
|
||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user