aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-05-18 18:38:31 +0000
committerbloodstalker <thabogre@gmail.com>2017-05-18 18:38:31 +0000
commitf2f72d12587d1265e4372bc498627b4e9fc5630c (patch)
tree9c0866ccab2a9ec48cdbf5296a4260007cbc35e9
parentthe memory leak is apparently a non-issue, for more info read the comment in ... (diff)
downloadmutator-f2f72d12587d1265e4372bc498627b4e9fc5630c.tar.gz
mutator-f2f72d12587d1265e4372bc498627b4e9fc5630c.zip
added a new option for mutagen extraction
-rw-r--r--mutator-lvl0.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp
index 213f8d1..d184a52 100644
--- a/mutator-lvl0.cpp
+++ b/mutator-lvl0.cpp
@@ -226,6 +226,7 @@ cl::opt<std::string> MCD("MCD", cl::desc("MisraC switches to disable specific ru
cl::opt<bool> MCEA("MCEA", cl::desc("MisraC switch to enable all rule checks"), cl::init(true), cl::cat(MutatorLVL0Cat), cl::Optional);
cl::opt<bool> MCDA("MCDA", cl::desc("MisraC switches to disable all rule checks"), cl::init(false), cl::cat(MutatorLVL0Cat), cl::Optional);
cl::opt<bool> SFRCPP("SFRCPP", cl::desc("Enables SaferCPlusPlus rule checks"), cl::init(true), cl::cat(MutatorLVL0Cat), cl::Optional);
+cl::opt<bool> mutagen("mutagen", cl::desc("runs mutagen after running the static tests"), cl::init(false), cl::cat(MutatorLVL0Cat), cl::Optional);
/**********************************************************************************************************************/
class StringOptionsParser
{
@@ -6005,7 +6006,7 @@ class SFCPPARR02SUB : public MatchFinder::MatchCallback
}
private:
- Rewriter &Rewrite;
+ Rewriter &Rewrite [[maybe_unused]];
SourceLocation ExtOriginSL;
StringRef ExtOriginFileName;
};
@@ -6050,7 +6051,7 @@ class SFCPPARR02 : public MatchFinder::MatchCallback
}
private:
- Rewriter &Rewrite;
+ Rewriter &Rewrite [[maybe_unused]];
MatchFinder Matcher;
SFCPPARR02SUB SubHandler;
};