diff options
author | bloodstalker <thabogre@gmail.com> | 2019-10-04 07:20:58 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2019-10-04 07:20:58 +0000 |
commit | d69f80304f5e1cd09176d45fcc1d24f362ba3319 (patch) | |
tree | b878b199122e8f831b3400daedb3d0bec46426c2 /cgrep.cpp | |
parent | updated the latest llvm trunk version tested to 367652 (diff) | |
download | cgrep-d69f80304f5e1cd09176d45fcc1d24f362ba3319.tar.gz cgrep-d69f80304f5e1cd09176d45fcc1d24f362ba3319.zip |
update
Diffstat (limited to 'cgrep.cpp')
-rw-r--r-- | cgrep.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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"; |