Delay the parsing of the document.

This commit is contained in:
Roberto Raggi
2009-09-30 16:13:43 +02:00
parent ace380ec28
commit 8356d3360b
4 changed files with 8 additions and 1 deletions

View File

@@ -412,6 +412,8 @@ void CppEditorSupport::checkDocumentNow()
const QByteArray preprocessedCode = snapshot.preprocessedCode(plainText, fileName);
if (Document::Ptr doc = snapshot.documentFromSource(preprocessedCode, fileName)) {
doc->parse();
CheckDocument checkDocument(doc, snapshot);
QList<QuickFixOperationPtr> quickFixes = checkDocument(ed->textCursor());
if (! quickFixes.isEmpty()) {