aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-30 09:21:29 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-30 09:21:29 +0000
commit5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b (patch)
treea79d69940a6b830e3b7403edc034fedcda98502c /mutator_aux.h
parentadded xml output support for the misra report (diff)
downloadmutator-5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b.tar.gz
mutator-5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b.zip
added xml output support for the misra report
Diffstat (limited to '')
-rw-r--r--mutator_aux.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mutator_aux.h b/mutator_aux.h
index 17837c8..4f97d10 100644
--- a/mutator_aux.h
+++ b/mutator_aux.h
@@ -5,11 +5,28 @@
#include <string>
#include "clang/AST/AST.h"
#include "clang/Rewrite/Core/Rewriter.h"
+#include "tinyxml2/tinyxml2.h"
using namespace clang;
+using namespace tinyxml2;
namespace Devi {
SourceLocation SourceLocationHasMacro (SourceLocation SL, Rewriter &Rewrite, std::string Kind);
+
+class XMLReport
+{
+public:
+ XMLReport();
+
+ void XMLCreateReport(void);
+ void XMLAddNode(ASTContext* ASTC, SourceLocation SL, std::string MisraRule, std::string Description);
+ void SaveReport(void);
+
+private:
+ XMLDocument XMLReportDoc;
+ XMLNode* RootPointer;
+};
+
}
#endif \ No newline at end of file