diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:38:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | cdfc4e31953274be9b745614b4b7620d365a7b5e (patch) | |
tree | d730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/CTest/cmCTestMultiProcessHandler.cxx | |
parent | 808b17b1206dd70c7fbd676e8c24181cde537954 (diff) | |
download | CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.zip CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.bz2 |
clang-tidy: fix `readability-qualified-auto` warnings
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 9793c5b..852f9d9 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -621,7 +621,7 @@ void cmCTestMultiProcessHandler::StartNextTests() void cmCTestMultiProcessHandler::OnTestLoadRetryCB(uv_timer_t* timer) { - auto self = static_cast<cmCTestMultiProcessHandler*>(timer->data); + auto* self = static_cast<cmCTestMultiProcessHandler*>(timer->data); self->StartNextTests(); } @@ -631,7 +631,7 @@ void cmCTestMultiProcessHandler::FinishTestProcess( this->Completed++; int test = runner->GetIndex(); - auto properties = runner->GetTestProperties(); + auto* properties = runner->GetTestProperties(); bool testResult = runner->EndTest(this->Completed, this->Total, started); if (runner->TimedOutForStopTime()) { @@ -920,7 +920,7 @@ void cmCTestMultiProcessHandler::MarkFinished() static Json::Value DumpToJsonArray(const std::set<std::string>& values) { Json::Value jsonArray = Json::arrayValue; - for (auto& it : values) { + for (const auto& it : values) { jsonArray.append(it); } return jsonArray; @@ -929,7 +929,7 @@ static Json::Value DumpToJsonArray(const std::set<std::string>& values) static Json::Value DumpToJsonArray(const std::vector<std::string>& values) { Json::Value jsonArray = Json::arrayValue; - for (auto& it : values) { + for (const auto& it : values) { jsonArray.append(it); } return jsonArray; @@ -939,7 +939,7 @@ static Json::Value DumpRegExToJsonArray( const std::vector<std::pair<cmsys::RegularExpression, std::string>>& values) { Json::Value jsonArray = Json::arrayValue; - for (auto& it : values) { + for (const auto& it : values) { jsonArray.append(it.second); } return jsonArray; @@ -949,7 +949,7 @@ static Json::Value DumpMeasurementToJsonArray( const std::map<std::string, std::string>& values) { Json::Value jsonArray = Json::arrayValue; - for (auto& it : values) { + for (const auto& it : values) { Json::Value measurement = Json::objectValue; measurement["measurement"] = it.first; measurement["value"] = it.second; |