| 23 | #include "cmake.h" |
| 24 | |
| 25 | cmConfigureLog::cmConfigureLog(std::string logDir, |
| 26 | std::vector<unsigned int> logVersions) |
| 27 | : LogDir(std::move(logDir)) |
| 28 | , LogVersions(std::move(logVersions)) |
| 29 | { |
| 30 | // Always emit events for the latest log version. |
| 31 | static unsigned int const LatestLogVersion = 1; |
| 32 | if (!cm::contains(this->LogVersions, LatestLogVersion)) { |
| 33 | this->LogVersions.emplace_back(LatestLogVersion); |
| 34 | } |
| 35 | |
| 36 | Json::StreamWriterBuilder builder; |
| 37 | this->Encoder.reset(builder.newStreamWriter()); |
| 38 | } |
| 39 | |
| 40 | cmConfigureLog::~cmConfigureLog() |
| 41 | { |
nothing calls this directly
no test coverage detected