From 2df871e62cc6dcbea31dd641556add66ae65f3c9 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 18 Dec 2016 02:22:56 +0330 Subject: fixed two defects --- mutator-lvl0.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mutator-lvl0.cpp') diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 468c90a..b6ac20b 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -768,7 +768,7 @@ public: /*start of checks for 19.5*/ - /*has false positives.*/ + /*has false positives. false positives go away if the main.c is not included(main.c includes another header)*/ if (FD->isThisDeclarationADefinition()) { for (unsigned x = 0; x < MacroDefSourceLocation.size(); ++x) @@ -1130,7 +1130,7 @@ private: SourceLocation newSourceLocation; bool isFirstElement = false; - bool doesFirstElementHaveInit; + bool doesFirstElementHaveInit = false; bool someoneHasInit = false; bool everyoneHasInit = true; @@ -1931,14 +1931,18 @@ public: if (StringKind == "ImplicitCastExpr") { - //ParentICE = ParentNode.get(); +#if 0 + ParentICE = ParentNode.get(); +#endif /*the tests for CastKind go here*/ } } private: +#if 0 const clang::ImplicitCastExpr* ParentICE; +#endif Rewriter &Rewrite; }; /**********************************************************************************************************************/ -- cgit v1.2.3