From 7f78a06ea0e994ae35d1e2da4e54e42bec654650 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 2 Dec 2016 07:52:08 +0330 Subject: added the interface for the new overload --- mutator_aux.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'mutator_aux.h') 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 #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.*/ -- cgit v1.2.3