clang-modernize -loop-convert

and some manual adjustments
This commit is contained in:
Tillmann Karras
2014-03-03 06:25:15 +01:00
parent f401263867
commit c89f04a7c5
22 changed files with 339 additions and 293 deletions

View File

@ -12,15 +12,15 @@
void SymbolDB::List()
{
for (XFuncMap::iterator iter = functions.begin(); iter != functions.end(); ++iter)
for (const auto& func : functions)
{
DEBUG_LOG(OSHLE, "%s @ %08x: %i bytes (hash %08x) : %i calls",
iter->second.name.c_str(), iter->second.address,
iter->second.size, iter->second.hash,
iter->second.numCalls);
func.second.name.c_str(), func.second.address,
func.second.size, func.second.hash,
func.second.numCalls);
}
INFO_LOG(OSHLE, "%lu functions known in this program above.",
(unsigned long)functions.size());
(unsigned long)functions.size());
}
void SymbolDB::Clear(const char *prefix)