MCPcopy Create free account
hub / github.com/Kitware/CMake / cmConfigureLog

Method cmConfigureLog

Source/cmConfigureLog.cxx:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "cmake.h"
24
25cmConfigureLog::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
40cmConfigureLog::~cmConfigureLog()
41{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
emplace_backMethod · 0.80
newStreamWriterMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected