1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-21 14:40:48 +08:00

clang-tidy: use .empty() to check emptyness

This commit is contained in:
Daniel Pfeifer
2017-04-21 10:41:38 +02:00
parent 012972a926
commit b432e933cb

View File

@@ -561,7 +561,7 @@ void cmCTestMultiProcessHandler::CreateParallelTestCostList()
// In parallel test runs repeatedly move dependencies of the tests on // In parallel test runs repeatedly move dependencies of the tests on
// the current dependency level to the next level until no // the current dependency level to the next level until no
// further dependencies exist. // further dependencies exist.
while (priorityStack.back().size()) { while (!priorityStack.back().empty()) {
TestSet& previousSet = priorityStack.back(); TestSet& previousSet = priorityStack.back();
priorityStack.push_back(TestSet()); priorityStack.push_back(TestSet());
TestSet& currentSet = priorityStack.back(); TestSet& currentSet = priorityStack.back();