Skip to content

Commit

Permalink
Update symboldatabase.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jun 13, 2024
1 parent f5b35d4 commit 17d2a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,9 +1677,9 @@ void SymbolDatabase::createSymbolDatabaseExprIds()
}
}

auto exprScopes = functionScopes; // functions + global lambdas
auto exprScopes = functionScopes; // functions + global lambdas + namespaces
std::copy_if(scopeList.front().nestedList.begin(), scopeList.front().nestedList.end(), std::back_inserter(exprScopes), [](const Scope* scope) {
return scope && scope->type == Scope::eLambda;
return scope && (scope->type == Scope::eLambda || scope->type == Scope::eNamespace);
});

for (const Scope * scope : exprScopes) {
Expand Down

0 comments on commit 17d2a0b

Please sign in to comment.