From 33021d13d6566ad77cc804cd153582cb569b0ff6 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 7 Jan 2017 01:36:10 +0330 Subject: addded more overload interfaces --- mutator_aux.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mutator_aux.h') diff --git a/mutator_aux.h b/mutator_aux.h index 77d53bb..c344f97 100644 --- a/mutator_aux.h +++ b/mutator_aux.h @@ -21,18 +21,24 @@ using namespace tinyxml2; namespace Devi { SourceLocation SourceLocationHasMacro (SourceLocation SL, Rewriter &Rewrite, std::string Kind); +/*********************************************************************************************************************/ bool IsTheMatchInSysHeader(bool SysHeaderFlag, const ast_matchers::MatchFinder::MatchResult &MR, SourceLocation SL); bool IsTheMatchInSysHeader(bool SysHeaderFlag, const SourceManager &SM, SourceLocation SL); bool IsTheMatchInSysHeader(bool SysHeaderFlag, bool SysHeader, SourceLocation SL); +bool IsTheMatchInSysHeader(bool SysHeaderFlag, bool SysHeader); +/*********************************************************************************************************************/ bool IsTheMatchInMainFile(bool MainFileFlag, const ast_matchers::MatchFinder::MatchResult &MR, SourceLocation SL); bool IsTheMatchInMainFile(bool MainFileFlag, const SourceManager &SM, SourceLocation SL); bool IsTheMatchInMainFile(bool MainFileFlag, bool MainFile, SourceLocation SL); +bool IsTheMatchInMainFile(bool MainFileFlag, bool MainFile); +/*********************************************************************************************************************/ + /*@DEVI- for both report classes, if the program gets terminated, since the destructor does not close the report files, what happens to them is implementation-defined in case of let's say an exit, but since we erase the files everytime a new instance of mutator-lvl0 is called, we are fine. or so i think.*/ @@ -54,6 +60,8 @@ public: void XMLAddNode(std::string FilePath, std::string MisraRule, std::string Description); + void XMLAddNode(unsigned Line, unsigned Column, std::string FileName, std::string MisraRule, std::string Description); + void SaveReport(void); private: @@ -75,6 +83,8 @@ public: void JSONAddElement(std::string FilePath, std::string MisraRule, std::string Description); + void JSONAddElement(unsigned Line, unsigned Column, std::string FileName, std::string MisraRule, std::string Description); + void CloseReport(void); private: -- cgit v1.2.3