[clang-tidy] Use StringRef::contains (NFC)

This commit is contained in:
Kazu Hirata 2023-12-23 22:30:03 -08:00
parent 1daf2994de
commit 0f1721c480

View File

@ -97,7 +97,7 @@ void InefficientAlgorithmCheck::check(const MatchFinder::MatchResult &Result) {
if (!AlgDecl)
return;
if (Unordered && AlgDecl->getName().find("bound") != llvm::StringRef::npos)
if (Unordered && AlgDecl->getName().contains("bound"))
return;
const auto *AlgParam = Result.Nodes.getNodeAs<Expr>("AlgParam");