aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-05-02 20:56:00 +0000
committerbloodstalker <thabogre@gmail.com>2017-05-02 20:56:00 +0000
commit7783b055a6693ea213910fa2a0570d4f969d9317 (patch)
treeba4c86ce1b95e04196c65947ead3bf571e20356a /bruiser/bruiser.cpp
parentcosmetic (diff)
downloadmutator-7783b055a6693ea213910fa2a0570d4f969d9317.tar.gz
mutator-7783b055a6693ea213910fa2a0570d4f969d9317.zip
hijack main now works
Diffstat (limited to 'bruiser/bruiser.cpp')
-rw-r--r--bruiser/bruiser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp
index 7b6ddc3..50760f3 100644
--- a/bruiser/bruiser.cpp
+++ b/bruiser/bruiser.cpp
@@ -51,7 +51,7 @@ using namespace clang::driver;
using namespace clang::tooling;
/**********************************************************************************************************************/
#define __DBG_1
-#if 0
+#if 1
#undef __DBG_1
#endif
/**********************************************************************************************************************/
@@ -325,6 +325,8 @@ int main(int argc, const char **argv)
bruiser::ShellHistory shHistory;
int InKey;
+ CommonOptionsParser op(argc, argv, BruiserCategory);
+
{
char command[130];
while(true)
@@ -383,11 +385,10 @@ int main(int argc, const char **argv)
if (std::strcmp(command, "hijack main") == 0)
{
- CommonOptionsParser op(argc, argv, BruiserCategory);
ClangTool Tool(op.getCompilations(), op.getSourcePathList());
RunResult = Tool.run(newFrontendActionFactory<BruiserFrontendAction>().get());
- std::cout << CYAN <<"hijacking main returned " << RunResult << "\n";
+ std::cout << CYAN <<"hijacking main returned " << RunResult << "\n" << NORMAL;
continue;
}