From 8a4f0dbf8469968163bb86287877770d574a57e7 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 19 May 2017 04:08:03 +0430 Subject: fixed a tinyxml2 assert being thrown when the xml report ended up being empty --- mutator_report.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mutator_report.h') diff --git a/mutator_report.h b/mutator_report.h index a1e955b..69f177d 100644 --- a/mutator_report.h +++ b/mutator_report.h @@ -47,6 +47,7 @@ class XMLReport { public: XMLReport(); + ~XMLReport(); void XMLCreateReport(void); void XMLAddNode(ASTContext* ASTC, SourceLocation SL, std::string MisraRule, std::string Description); @@ -60,6 +61,8 @@ public: void XMLAddNode(unsigned Line, unsigned Column, std::string FileName, std::string MisraRule, std::string Description); + bool isReportEmpty(void); + void SaveReport(void); private: -- cgit v1.2.3