Open
Description
Extracted from llvm/tools/llvm-debuginfo-analyzer/README.txt
https://reviews.llvm.org/D125784#inline-1296195
Optimize the 'find' method to use the proposed code:
LVStringRefs::iterator Iter = std::find_if(Components.begin(), Components.end(),
[](StringRef Name) {
return IdentifiedNamespaces.find(Name) == IdentifiedNamespaces.end();
});
LVStringRefs::size_type FirstNonNamespace = std::distance(Components.begin(), Iter);
Activity
llvmbot commentedon Oct 16, 2023
@llvm/issue-subscribers-debuginfo
Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)
Optimize the 'find' method to use the proposed code: