aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.h
diff options
context:
space:
mode:
Diffstat (limited to 'mutator_aux.h')
-rw-r--r--mutator_aux.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/mutator_aux.h b/mutator_aux.h
index ed7d1a4..16f4a0f 100644
--- a/mutator_aux.h
+++ b/mutator_aux.h
@@ -8,6 +8,7 @@
/*********************************************************************************************************************/
/*inclusion directives*/
#include <string>
+#include <fstream>
#include "clang/AST/AST.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Rewrite/Core/Rewriter.h"
@@ -38,6 +39,23 @@ private:
XMLNode* RootPointer;
};
+class JSONReport
+{
+public:
+ JSONReport();
+
+ void JSONCreateReport(void);
+ void JSONAddElement(ASTContext* ASTC, SourceLocation SL, std::string MisraRule, std::string Description);
+ /*overload for checks that announce the result in onendoftranslation unit.*/
+ void JSONAddElement(FullSourceLoc FSL, SourceLocation SL, std::string MisraRule, std::string Description);
+ /*overload for PPCallbacks.*/
+ void JSONAddElement(const SourceManager &SM, SourceLocation SL, std::string MisraRule, std::string Description);
+ void CloseReport(void);
+
+private:
+ std::ofstream JSONRepFile;
+};
+
}
#endif