aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2019-10-04 07:20:58 +0000
committerbloodstalker <thabogre@gmail.com>2019-10-04 07:20:58 +0000
commitd69f80304f5e1cd09176d45fcc1d24f362ba3319 (patch)
treeb878b199122e8f831b3400daedb3d0bec46426c2 /cgrep.cpp
parentupdated the latest llvm trunk version tested to 367652 (diff)
downloadcgrep-d69f80304f5e1cd09176d45fcc1d24f362ba3319.tar.gz
cgrep-d69f80304f5e1cd09176d45fcc1d24f362ba3319.zip
update
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";