aboutsummaryrefslogtreecommitdiffstats
path: root/mutator-lvl0.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-17 22:52:56 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-17 22:52:56 +0000
commit2df871e62cc6dcbea31dd641556add66ae65f3c9 (patch)
treedf378632ce51922764ec9f9210e4513e12d92c93 /mutator-lvl0.cpp
parentadded landscape.io badge (diff)
downloadmutator-2df871e62cc6dcbea31dd641556add66ae65f3c9.tar.gz
mutator-2df871e62cc6dcbea31dd641556add66ae65f3c9.zip
fixed two defects
Diffstat (limited to '')
-rw-r--r--mutator-lvl0.cpp10
1 files changed, 7 insertions, 3 deletions
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;
};
/**********************************************************************************************************************/