diff options
author | bloodstalker <thabogre@gmail.com> | 2017-02-26 08:32:55 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-02-26 08:32:55 +0000 |
commit | d8e0585fa88423bf097450dcff70e3ca0b559f52 (patch) | |
tree | 31a86b629e7b58d57925281a2d9b8b5b4ffa26fa | |
parent | took out a comment (diff) | |
download | mutator-d8e0585fa88423bf097450dcff70e3ca0b559f52.tar.gz mutator-d8e0585fa88423bf097450dcff70e3ca0b559f52.zip |
now the option vector is being populated and updated correctly based on the input args
-rw-r--r-- | mutator-lvl0.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 8435203..08e3ddf 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -72,7 +72,7 @@ using namespace clang::tooling; /**********************************************************************************************************************/ /*macros and defs*/ #define _MUT0_TEST -#if 0 +#if 1 #undef _MUT0_TEST #endif /**********************************************************************************************************************/ @@ -243,14 +243,14 @@ public: { for (auto &iter : RuleList) { - std::cerr << "RLKey: " << iter.first << " " << "RLValue: " << iter.second << std::endl; + std::cout<< "Debug: " << "RLKey: " << iter.first << " " << "RLValue: " << iter.second << std::endl; } - std::cerr << std::endl; + std::cout << std::endl; for (auto &iter : ParsedString) { - std::cerr << "PSKey: " << iter.first << " " << "PSValue: " << iter.second << std::endl; + std::cout << "Debug: " << "PSKey: " << iter.first << " " << "PSValue: " << iter.second << std::endl; } } } @@ -328,7 +328,7 @@ private: if (WhiteSpacePos != std::string::npos) { - ParsedString.push_back(std::make_pair(TempString.substr(WhiteSpacePos, WhiteSpacePos - OldPosition), Disenable)); + ParsedString.push_back(std::make_pair(TempString.substr(OldPosition + 1U, WhiteSpacePos - OldPosition - 1U), Disenable)); } } } @@ -7718,7 +7718,7 @@ int main(int argc, const char **argv) SOPProto.MC2Parser(); #if defined(_MUT0_TEST) - SOPProto.Dump(false); + SOPProto.Dump(true); #endif #if defined(_MUT0_TEST) |