Skip to content

Commit 89092fc

Browse files
committed
fixed modernize-use-auto clang-tidy warnings
1 parent 5eea328 commit 89092fc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
722722

723723
bool newFunc = true; // Is this function already in the database?
724724
auto range = scope->functionMap.equal_range(tok->str());
725-
for (std::multimap<std::string, const Function*>::const_iterator it = range.first; it != range.second; ++it) {
725+
for (auto it = range.first; it != range.second; ++it) {
726726
if (it->second->argsMatch(scope, it->second->argDef, argStart, "", 0)) {
727727
newFunc = false;
728728
break;
@@ -806,7 +806,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
806806
if (declEnd && declEnd->str() == ";") {
807807
bool newFunc = true; // Is this function already in the database?
808808
auto range = scope->functionMap.equal_range(ftok->str());
809-
for (std::multimap<std::string, const Function*>::const_iterator it = range.first; it != range.second; ++it) {
809+
for (auto it = range.first; it != range.second; ++it) {
810810
if (it->second->argsMatch(scope, it->second->argDef, argStart, "", 0)) {
811811
newFunc = false;
812812
break;
@@ -3450,7 +3450,7 @@ Function* SymbolDatabase::addGlobalFunction(Scope*& scope, const Token*& tok, co
34503450
// Lambda functions are always unique
34513451
if (tok->str() != "[") {
34523452
auto range = scope->functionMap.equal_range(tok->str());
3453-
for (std::multimap<std::string, const Function*>::const_iterator it = range.first; it != range.second; ++it) {
3453+
for (auto it = range.first; it != range.second; ++it) {
34543454
const Function *f = it->second;
34553455
if (f->hasBody())
34563456
continue;
@@ -3610,7 +3610,7 @@ void SymbolDatabase::addClassFunction(Scope *&scope, const Token *&tok, const To
36103610

36113611
if (match) {
36123612
auto range = scope1->functionMap.equal_range(tok->str());
3613-
for (std::multimap<std::string, const Function*>::const_iterator it = range.first; it != range.second; ++it) {
3613+
for (auto it = range.first; it != range.second; ++it) {
36143614
auto * func = const_cast<Function *>(it->second);
36153615
if (destructor && func->type != FunctionType::eDestructor)
36163616
continue;

0 commit comments

Comments
 (0)