diff options
author | Kazu Hirata <kazu@google.com> | 2022-10-30 09:41:55 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-10-30 09:41:55 -0700 |
commit | e125e6c429e16741b128b2cab3787cdc57e166c6 (patch) | |
tree | 3c55e94a089d09abdfc66b97b8d0bfe3abf821ee /clang-tools-extra/clang-doc | |
parent | 087bb0f1fe1c5a3f17eeea3537218b2be5d18f34 (diff) | |
download | llvm-e125e6c429e16741b128b2cab3787cdc57e166c6.tar.gz |
[clang-tools-extra] Use llvm::find (NFC)
Diffstat (limited to 'clang-tools-extra/clang-doc')
-rw-r--r-- | clang-tools-extra/clang-doc/Generators.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-doc/Generators.cpp b/clang-tools-extra/clang-doc/Generators.cpp index 591d43322342..da19c05ab67b 100644 --- a/clang-tools-extra/clang-doc/Generators.cpp +++ b/clang-tools-extra/clang-doc/Generators.cpp @@ -65,7 +65,7 @@ void Generator::addInfoToIndex(Index &Idx, const doc::Info *Info) { for (const auto &R : llvm::reverse(Info->Namespace)) { // Look for the current namespace in the children of the index I is // pointing. - auto It = std::find(I->Children.begin(), I->Children.end(), R.USR); + auto It = llvm::find(I->Children, R.USR); if (It != I->Children.end()) { // If it is found, just change I to point the namespace reference found. I = &*It; @@ -79,7 +79,7 @@ void Generator::addInfoToIndex(Index &Idx, const doc::Info *Info) { // Look for Info in the vector where it is supposed to be; it could already // exist if it is a parent namespace of an Info already passed to this // function. - auto It = std::find(I->Children.begin(), I->Children.end(), Info->USR); + auto It = llvm::find(I->Children, Info->USR); if (It == I->Children.end()) { // If it is not in the vector it is inserted I->Children.emplace_back(Info->USR, Info->extractName(), Info->IT, |