aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cgrep.cpp')
-rw-r--r--cgrep.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cgrep.cpp b/cgrep.cpp
index cdbfe60..0e12759 100644
--- a/cgrep.cpp
+++ b/cgrep.cpp
@@ -196,6 +196,7 @@ std::vector<std::string> listDirs(std::string _path) {
std::cout << "name: " << ent_->d_name << "\ttype:" << int(ent_->d_type)
<< "\n";
if (ent_->d_type == DT_DIR) {
+ std::cout << ent_->d_name << "\n";
}
dummy_.push_back(ent_->d_name);
}
@@ -632,10 +633,12 @@ public:
CheckSLValidity(HashLoc);
SourceLocation SL =
Devi::SourceLocationHasMacro(HashLoc, Rewrite, "start");
- if (Devi::IsTheMatchInSysHeader(CO_SYSHDR, SM, SL))
+ if (Devi::IsTheMatchInSysHeader(CO_SYSHDR, SM, SL)) {
return void();
- if (!Devi::IsTheMatchInMainFile(CO_MAINFILE, SM, SL))
+ }
+ if (!Devi::IsTheMatchInMainFile(CO_MAINFILE, SM, SL)) {
return void();
+ }
std::string name = FileName.str();
if (regex_handler(REGEX_PP(CO_REGEX), name)) {
std::cout << name << "\t";