diff options
Diffstat (limited to 'src/lintmanager.cpp')
-rw-r--r-- | src/lintmanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp index f595a38..1f1714e 100644 --- a/src/lintmanager.cpp +++ b/src/lintmanager.cpp @@ -187,13 +187,18 @@ void LintManager::selectRulesForFile() bool LintManager::isMatchFile(RuleBase *const rule) { -// printf("isMatchFile: %s\n", mFileName.c_str()); +// printf("rule: %s, isMatchFile: %s\n", rule->getName().c_str(), +// mFileName.c_str()); const std::set<std::string> &masks = rule->getMasks(); FOR_EACH (std::set<std::string>::const_iterator, it, masks) { +// printf("check regexp: %s\n", (*it).c_str()); std::regex exp(*it); if (std::regex_match (mFileName, exp)) + { +// printf("matched\n"); return true; + } } return false; } |