aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cgrep.cpp')
-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;
}