From 5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 30 Nov 2016 12:51:29 +0330 Subject: added xml output support for the misra report --- mutator_aux.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mutator_aux.h') 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 #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 -- cgit v1.2.3