Fix for problem: "Too many #ifdef configurations - cppcheck will only check 12 of 12"
This commit is contained in:
parent
4b6e1c6946
commit
1a6e69a80b
|
@ -172,7 +172,7 @@ unsigned int CppCheck::processFile(const std::string& filename)
|
||||||
configurations.push_back(_settings.userDefines);
|
configurations.push_back(_settings.userDefines);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_settings._force && configurations.size() >= _settings._maxConfigs) {
|
if (!_settings._force && configurations.size() > _settings._maxConfigs) {
|
||||||
const std::string fixedpath = Path::toNativeSeparators(filename);
|
const std::string fixedpath = Path::toNativeSeparators(filename);
|
||||||
ErrorLogger::ErrorMessage::FileLocation location;
|
ErrorLogger::ErrorMessage::FileLocation location;
|
||||||
location.setfile(fixedpath);
|
location.setfile(fixedpath);
|
||||||
|
|
Loading…
Reference in New Issue