diff options
author | bloodstalker <thabogre@gmail.com> | 2017-01-06 22:06:10 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-01-06 22:06:10 +0000 |
commit | 33021d13d6566ad77cc804cd153582cb569b0ff6 (patch) | |
tree | a1a7c31be5bc630bc36dc83b3041c0523e23c50d /mutator_aux.h | |
parent | added some more overloads (diff) | |
download | mutator-33021d13d6566ad77cc804cd153582cb569b0ff6.tar.gz mutator-33021d13d6566ad77cc804cd153582cb569b0ff6.zip |
addded more overload interfaces
Diffstat (limited to 'mutator_aux.h')
-rw-r--r-- | mutator_aux.h | 10 |
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: |