Allow filtering when using --project (#2522)
This commit is contained in:
parent
6d4eff46be
commit
60ada656a0
|
@ -186,7 +186,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
|
||||||
if (!ignored.empty())
|
if (!ignored.empty())
|
||||||
std::cout << "cppcheck: Maybe all paths were ignored?" << std::endl;
|
std::cout << "cppcheck: Maybe all paths were ignored?" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
} else if (!mSettings->fileFilter.empty()) {
|
} else if (!mSettings->fileFilter.empty() && settings.project.fileSettings.empty()) {
|
||||||
std::map<std::string, std::size_t> newMap;
|
std::map<std::string, std::size_t> newMap;
|
||||||
for (std::map<std::string, std::size_t>::const_iterator i = mFiles.begin(); i != mFiles.end(); ++i)
|
for (std::map<std::string, std::size_t>::const_iterator i = mFiles.begin(); i != mFiles.end(); ++i)
|
||||||
if (matchglob(mSettings->fileFilter, i->first)) {
|
if (matchglob(mSettings->fileFilter, i->first)) {
|
||||||
|
|
Loading…
Reference in New Issue