aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-02 04:22:08 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-02 04:22:08 +0000
commit7f78a06ea0e994ae35d1e2da4e54e42bec654650 (patch)
treea877783907281cdf9bf9890e4d59829200d4edb4 /mutator_aux.h
parentadded another overload for member function XMLAdNode to support PPCallbacks. (diff)
downloadmutator-7f78a06ea0e994ae35d1e2da4e54e42bec654650.tar.gz
mutator-7f78a06ea0e994ae35d1e2da4e54e42bec654650.zip
added the interface for the new overload
Diffstat (limited to 'mutator_aux.h')
-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.*/