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

Method WriteReplies

Source/cmFileAPI.cxx:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void cmFileAPI::WriteReplies(IndexFor indexFor)
131{
132 bool const success = indexFor == IndexFor::Success;
133 this->ReplyIndexFor = indexFor;
134
135 if (this->QueryExists) {
136 cmSystemTools::MakeDirectory(this->APIv1 + "/reply");
137 this->WriteJsonFile(this->BuildReplyIndex(), success ? "index" : "error",
138 ComputeSuffixTime);
139 }
140
141 if (success) {
142 this->RemoveOldReplyFiles();
143 }
144}
145
146std::vector<std::string> cmFileAPI::LoadDir(std::string const& dir)
147{

Callers 2

ActualConfigureMethod · 0.80
GenerateMethod · 0.80

Calls 3

WriteJsonFileMethod · 0.95
BuildReplyIndexMethod · 0.95
RemoveOldReplyFilesMethod · 0.95

Tested by

no test coverage detected