diff options
author | bloodstalker <thabogre@gmail.com> | 2016-11-30 09:21:29 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2016-11-30 09:21:29 +0000 |
commit | 5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b (patch) | |
tree | a79d69940a6b830e3b7403edc034fedcda98502c | |
parent | added xml output support for the misra report (diff) | |
download | mutator-5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b.tar.gz mutator-5ca610289d8d7a7cbf0af2ad7ba305a5a4245d9b.zip |
added xml output support for the misra report
-rw-r--r-- | mutator_aux.h | 17 |
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 |