diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:39:02 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:54:18 (GMT) |
commit | ef935b17ab47739b1e81e9c6baf6112b7a20f9cb (patch) | |
tree | 7f31fc4bcf6efb450e67b29ba6713937515ca956 /Source/cmRuntimeDependencyArchive.cxx | |
parent | 9ac8dbbb941194e79fd59acfc4affa018a222745 (diff) | |
download | CMake-ef935b17ab47739b1e81e9c6baf6112b7a20f9cb.zip CMake-ef935b17ab47739b1e81e9c6baf6112b7a20f9cb.tar.gz CMake-ef935b17ab47739b1e81e9c6baf6112b7a20f9cb.tar.bz2 |
clang-tidy: fix `readability-use-anyofallof` warnings
Diffstat (limited to 'Source/cmRuntimeDependencyArchive.cxx')
-rw-r--r-- | Source/cmRuntimeDependencyArchive.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmRuntimeDependencyArchive.cxx b/Source/cmRuntimeDependencyArchive.cxx index 0781d29..472f234 100644 --- a/Source/cmRuntimeDependencyArchive.cxx +++ b/Source/cmRuntimeDependencyArchive.cxx @@ -181,13 +181,10 @@ bool cmRuntimeDependencyArchive::GetRuntimeDependencies( return false; } } - for (auto const& mod : modules) { - if (!this->Linker->ScanDependencies(mod, cmStateEnums::MODULE_LIBRARY)) { - return false; - } - } - - return true; + return std::all_of( + modules.begin(), modules.end(), [this](std::string const& mod) -> bool { + return this->Linker->ScanDependencies(mod, cmStateEnums::MODULE_LIBRARY); + }); } void cmRuntimeDependencyArchive::SetError(const std::string& e) |