Examples of errors detected by the V662 diagnostic.


V662. Consider inspecting the loop expression. Different containers are utilized for setting up initial and final values of the iterator.


Rhino (JavaScript engine)

V662 Consider inspecting the loop expression. Different containers are utilized for setting up initial and final values of the iterator. aosconfiguration.cpp 93


MAP_LOCALE_DIRS m_LocaleStaticDirs;
MAP_LOCALE_DIRS m_LocaleDataDirs;

void AOSConfiguration::debugDump(....) const
{
  ....
  for (AOSConfiguration::MAP_LOCALE_DIRS::const_iterator
       cit =  m_LocaleStaticDirs.begin();
       cit != m_LocaleDataDirs.end();
       ++cit)
  ....
}


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++, and C#

goto PVS-Studio;
We use cookies for the analysis of events to improve our content and make user interaction more convenient. By continuing the view of our web-pages you accept the terms of using these files. You can find out more about cookie-files and privacy policy or close the notification, by clicking on the button. Learn More →
Do not show