From b8f1f2b0121ad39ba7f68d5e41d8379a7e283310 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 14 Feb 2017 09:37:06 +0330 Subject: added the rule switches definitions --- mutator-lvl0.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 CheckSystemHeader("SysHeader", cl::desc("mutator-lvl0 will run thr cl::opt 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 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 MCE("MCE", cl::desc("MisraC switches to enable specific rule checks"), cl::init(""), cl::cat(MutatorLVL0Cat), cl::Optional); +cl::opt MCD("MCD", cl::desc("MisraC switches to disable specific rule checks"), cl::init(""), cl::cat(MutatorLVL0Cat), cl::Optional); +cl::opt MCEA("MCEA", cl::desc("MisraC switch to enable all rule checks"), cl::init(true), cl::cat(MutatorLVL0Cat), cl::Optional); +cl::opt 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: -- cgit v1.2.3