From ce3e57183a9e7e78e1a0981a08382cac7694e695 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 15 Dec 2016 00:09:56 +0330 Subject: fixed the Coverity faults. --- mutator.cpp | 8 ++++---- 1 file 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 } -- cgit v1.2.3