aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-01-06 22:06:10 +0000
committerbloodstalker <thabogre@gmail.com>2017-01-06 22:06:10 +0000
commit33021d13d6566ad77cc804cd153582cb569b0ff6 (patch)
treea1a7c31be5bc630bc36dc83b3041c0523e23c50d
parentadded some more overloads (diff)
downloadmutator-33021d13d6566ad77cc804cd153582cb569b0ff6.tar.gz
mutator-33021d13d6566ad77cc804cd153582cb569b0ff6.zip
addded more overload interfaces
Diffstat (limited to '')
-rw-r--r--mutator_aux.h10
1 files changed, 10 insertions, 0 deletions
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: