aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-01-10 11:05:55 +0000
committerbloodstalker <thabogre@gmail.com>2020-01-10 11:05:55 +0000
commitfba22de6a97102158bf41f82b17826cca649a890 (patch)
tree4e5366af403e065c352d01645a2928b91cfde2c0 /cgrep.cpp
parentfix appveyor build [travis skip] (diff)
downloadcgrep-fba22de6a97102158bf41f82b17826cca649a890.tar.gz
cgrep-fba22de6a97102158bf41f82b17826cca649a890.zip
travis fix
Diffstat (limited to 'cgrep.cpp')
-rw-r--r--cgrep.cpp10
1 files 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