aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mutator_aux.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/mutator_aux.h b/mutator_aux.h
index 303d01f..ed7d1a4 100644
--- a/mutator_aux.h
+++ b/mutator_aux.h
@@ -1,15 +1,21 @@
+/*********************************************************************************************************************/
+/*first line intentionally left blank*/
+/*********************************************************************************************************************/
+/*inclusion guard*/
#ifndef MUTATOR_AUX_H
#define MUTATOR_AUX_H
-
+/*********************************************************************************************************************/
+/*inclusion directives*/
#include <string>
#include "clang/AST/AST.h"
+#include "clang/Basic/SourceManager.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);
@@ -23,6 +29,8 @@ public:
/*overloaded for rule checks that announce the result on onendoftranslation instead of run
since they dont have access to matchresult or astcontext.*/
void XMLAddNode(FullSourceLoc FSL, SourceLocation SL, std::string MisraRule, std::string Description);
+ /*another overload to support the xml output for PPCallbacks.*/
+ void XMLAddNode(const SourceManager &SM, SourceLocation SL, std::string MisraRule, std::string Description);
void SaveReport(void);
private:
@@ -32,4 +40,6 @@ private:
}
-#endif \ No newline at end of file
+#endif
+/*********************************************************************************************************************/
+/*last line intentionally left blank.*/