We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1daf299 commit 0f1721cCopy full SHA for 0f1721c
clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
@@ -97,7 +97,7 @@ void InefficientAlgorithmCheck::check(const MatchFinder::MatchResult &Result) {
97
if (!AlgDecl)
98
return;
99
100
- if (Unordered && AlgDecl->getName().find("bound") != llvm::StringRef::npos)
+ if (Unordered && AlgDecl->getName().contains("bound"))
101
102
103
const auto *AlgParam = Result.Nodes.getNodeAs<Expr>("AlgParam");
0 commit comments