aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
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