aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-03-11 05:21:16 +0000
committerbloodstalker <thabogre@gmail.com>2020-03-11 05:21:16 +0000
commit22932958d862dbdb2594838007c90a07bc81edc3 (patch)
treec51c3bbc1b51a5565048fd3da64d44f844b06180 /cgrep.cpp
parentmore bug fixes as we're getting ready for the first release. still not sure h... (diff)
downloadcgrep-22932958d862dbdb2594838007c90a07bc81edc3.tar.gz
cgrep-22932958d862dbdb2594838007c90a07bc81edc3.zip
update
Diffstat (limited to '')
-rw-r--r--cgrep.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/cgrep.cpp b/cgrep.cpp
index 452f3e7..b359aa7 100644
--- a/cgrep.cpp
+++ b/cgrep.cpp
@@ -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;
}