diff options
author | Kazu Hirata <kazu@google.com> | 2023-12-23 22:30:03 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-12-23 22:30:03 -0800 |
commit | 0f1721c480369bad1c8d3f9a664f8db6853f35fc (patch) | |
tree | 9296e107570d5845c8fdca8335b9f75506ef7e65 /clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp | |
parent | 1daf2994de49d1ecba4bee4e6842aa8a564cbc96 (diff) | |
download | llvm-0f1721c480369bad1c8d3f9a664f8db6853f35fc.zip llvm-0f1721c480369bad1c8d3f9a664f8db6853f35fc.tar.gz llvm-0f1721c480369bad1c8d3f9a664f8db6853f35fc.tar.bz2 |
[clang-tidy] Use StringRef::contains (NFC)
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp b/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp index 3c8751d..ad900fc 100644 --- a/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp +++ b/clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp @@ -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"); |