From fba22de6a97102158bf41f82b17826cca649a890 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 10 Jan 2020 14:35:55 +0330 Subject: travis fix --- cgrep.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cgrep.cpp b/cgrep.cpp index 5c65aa0..f49791e 100644 --- a/cgrep.cpp +++ b/cgrep.cpp @@ -153,15 +153,19 @@ static std::string get_line_from_file(SourceManager &SM, const MatchFinder::Matc * * @param path */ +#if 0 static void dig(boost::filesystem::path dir, int argc, const char** argv) { - for (const auto &entry : boost::filesystem::directory_iterator(dir)) { - if (true == is_directory(entry)) { + //just to be compatible with old gcc versions + //for (const auto &entry : boost::filesystem::directory_iterator(dir)) { + for (boost::filesystem::path::iterator entry = dir.begin(); entry != dir.end(); ++entry ) { + if (true == is_directory(*entry)) { auto cgrepInstance = build_cgrep_instance(argc, argv); run_cgrep_instance(cgrepInstance); - dig(entry.path(), argc, argv); + dig((*entry).path(), argc, argv); } } } +#endif /** * @brief does some preprocessing on the regex string we get as input -- cgit v1.2.3