Skip to content

Commit 0f1721c

Browse files
[clang-tidy] Use StringRef::contains (NFC)
1 parent 1daf299 commit 0f1721c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void InefficientAlgorithmCheck::check(const MatchFinder::MatchResult &Result) {
9797
if (!AlgDecl)
9898
return;
9999

100-
if (Unordered && AlgDecl->getName().find("bound") != llvm::StringRef::npos)
100+
if (Unordered && AlgDecl->getName().contains("bound"))
101101
return;
102102

103103
const auto *AlgParam = Result.Nodes.getNodeAs<Expr>("AlgParam");

0 commit comments

Comments
 (0)