diff options
| -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: | 
