aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-14 20:39:56 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-14 20:39:56 +0000
commitce3e57183a9e7e78e1a0981a08382cac7694e695 (patch)
tree6b313c0b3eede62179ed9fcf5b01c739f910205d
parentnow the user will just have to run it (diff)
downloadmutator-ce3e57183a9e7e78e1a0981a08382cac7694e695.tar.gz
mutator-ce3e57183a9e7e78e1a0981a08382cac7694e695.zip
fixed the Coverity faults.
-rw-r--r--mutator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mutator.cpp b/mutator.cpp
index 02ad8f5..114bfea 100644
--- a/mutator.cpp
+++ b/mutator.cpp
@@ -226,7 +226,7 @@ public:
SourceLocation MRForSLE = MRFor->getBody()->getLocEnd();
MRForSLE = Devi::SourceLocationHasMacro(MRForSLE, Rewrite, "end");
- Rewrite.InsertText(MRForSL, "{\n", "true", "false");
+ Rewrite.InsertText(MRForSL, "{\n", true, false);
/*we're getting the endloc with an offset of 2 to accomodate unary operators like '++'.*/
/*line-terminating semicolons are not included in the matches.*/
Rewrite.InsertTextAfterToken(MRForSLE.getLocWithOffset(2U), "\n}");
@@ -265,7 +265,7 @@ public:
/*we're getting the endloc with an offset of 2 to accomodate unary operators like '++'.*/
/*line-terminating semicolons are not included in the matches.*/
- Rewrite.InsertText(WFSL, "{\n", "true", "true");
+ Rewrite.InsertText(WFSL, "{\n", true, true);
Rewrite.InsertTextAfterToken(WFSLE.getLocWithOffset(2U), "\n}");
}
else
@@ -309,7 +309,7 @@ public:
//std::cout << IFESLE.printToString(*MR.SourceManager) << "\n" << std::endl;
#if 1
- Rewrite.InsertText(IFESL, "{\n", "true", "true");
+ Rewrite.InsertText(IFESL, "{\n", true, true);
Rewrite.InsertTextAfterToken(IFESL.getLocWithOffset(RangeSize), "\n}");
#endif
}
@@ -350,7 +350,7 @@ public:
/*we're getting the endloc with an offset of 2 to accomodate unary operators like '++'.*/
/*line-terminating semicolons are not included in the matches.*/
#if 1
- Rewrite.InsertText(FFSL, "{\n", "true", "true");
+ Rewrite.InsertText(FFSL, "{\n", true, true);
Rewrite.InsertTextAfterToken(FFSL.getLocWithOffset(RangeSize), "\n}");
#endif
}