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)
  ....
}


Bugs Found

Checked Projects
410
Collected Errors
14 111
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept