From d69f80304f5e1cd09176d45fcc1d24f362ba3319 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 4 Oct 2019 10:50:58 +0330 Subject: update --- cgrep.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cgrep.cpp') diff --git a/cgrep.cpp b/cgrep.cpp index cdbfe60..0e12759 100644 --- a/cgrep.cpp +++ b/cgrep.cpp @@ -196,6 +196,7 @@ std::vector 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"; -- cgit v1.2.3