aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-02-14 06:07:06 +0000
committerbloodstalker <thabogre@gmail.com>2017-02-14 06:07:06 +0000
commitb8f1f2b0121ad39ba7f68d5e41d8379a7e283310 (patch)
tree5c17373334a1fe60db2fbddf391d09239d70d2a8
parentincludes macros.mk (diff)
downloadmutator-b8f1f2b0121ad39ba7f68d5e41d8379a7e283310.tar.gz
mutator-b8f1f2b0121ad39ba7f68d5e41d8379a7e283310.zip
added the rule switches definitions
Diffstat (limited to '')
-rw-r--r--mutator-lvl0.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp
index 0aec6bc..6324c83 100644
--- a/mutator-lvl0.cpp
+++ b/mutator-lvl0.cpp
@@ -201,7 +201,11 @@ cl::opt<bool> CheckSystemHeader("SysHeader", cl::desc("mutator-lvl0 will run thr
cl::opt<bool> MainFileOnly("MainOnly", cl::desc("mutator-lvl0 will only report the results that reside in the main file"), cl::init(false), cl::cat(MutatorLVL0Cat), cl::ZeroOrMore);
cl::opt<MisraC> MisraCVersion(cl::desc("choose the MisraC version to check against"), \
cl::values(clEnumVal(MisraC2004, "Misra-C:2004"), clEnumVal(MisraC2012, "Misra-C:2012"), \
- clEnumVal(C2, "Misra-C:2004"), clEnumVal(C3, "Misra-C:2012")));
+ clEnumVal(C2, "Misra-C:2004"), clEnumVal(C3, "Misra-C:2012")), cl::init(MisraC2004));
+cl::opt<std::string> MCE("MCE", cl::desc("MisraC switches to enable specific rule checks"), cl::init(""), cl::cat(MutatorLVL0Cat), cl::Optional);
+cl::opt<std::string> MCD("MCD", cl::desc("MisraC switches to disable specific rule checks"), cl::init(""), cl::cat(MutatorLVL0Cat), cl::Optional);
+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);
/**********************************************************************************************************************/
class [[deprecated("replaced by a more efficient class"), maybe_unused]] MCForCmpless : public MatchFinder::MatchCallback {
public: