Commit 702e078a authored by Roberto Raggi's avatar Roberto Raggi
Browse files

oops! update errorCount after the semantic pass.

parent 2377567f
...@@ -85,8 +85,8 @@ public: ...@@ -85,8 +85,8 @@ public:
diag.errorCount = 0; // reset the error count. diag.errorCount = 0; // reset the error count.
TranslationUnit *unit = parse(source, TranslationUnit::ParseTranlationUnit); TranslationUnit *unit = parse(source, TranslationUnit::ParseTranlationUnit);
QSharedPointer<Document> doc(new Document(unit)); QSharedPointer<Document> doc(new Document(unit));
doc->errorCount = diag.errorCount;
doc->check(); doc->check();
doc->errorCount = diag.errorCount;
return doc; return doc;
} }
......
Supports Markdown
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