mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 17:56:50 +00:00
[clang-tidy] Use StringRef::contains (NFC)
This commit is contained in:
parent
1daf2994de
commit
0f1721c480
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user