diff options
author | bloodstalker <thabogre@gmail.com> | 2020-03-11 05:21:16 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2020-03-11 05:21:16 +0000 |
commit | 22932958d862dbdb2594838007c90a07bc81edc3 (patch) | |
tree | c51c3bbc1b51a5565048fd3da64d44f844b06180 /cgrep.cpp | |
parent | more bug fixes as we're getting ready for the first release. still not sure h... (diff) | |
download | cgrep-22932958d862dbdb2594838007c90a07bc81edc3.tar.gz cgrep-22932958d862dbdb2594838007c90a07bc81edc3.zip |
update
Diffstat (limited to 'cgrep.cpp')
-rw-r--r-- | cgrep.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -866,21 +866,6 @@ private: Rewriter TheRewriter; }; /***********************************************************************************************/ -static ClangTool build_cgrep_instance(int argc, const char **argv) { - CommonOptionsParser op(argc, argv, CGrepCat); - ClangTool cgrepInstance(op.getCompilations(), op.getSourcePathList()); - - return cgrepInstance; -} - -static int run_cgrep_instance(ClangTool cgrepToolInstance) { - int ret = cgrepToolInstance.run( - newFrontendActionFactory<AppFrontendAction>().get()); - - return ret; -} - -/***********************************************************************************************/ /*Main*/ int main(int argc, const char **argv) { CommonOptionsParser op(argc, argv, CGrepCat); @@ -888,10 +873,8 @@ int main(int argc, const char **argv) { op.getSourcePathList(); ClangTool Tool(op.getCompilations(), op.getSourcePathList()); int ret = Tool.run(newFrontendActionFactory<AppFrontendAction>().get()); -#if 0 - if ("" != CO_RECURSIVE) { - dig(CO_RECURSIVE, argc, argv); - } +#if 1 + listDirs(CO_RECURSIVE); #endif return ret; } |