cmConfigureLog: support writing array values

This commit is contained in:
Ben Boeckel
2025-04-24 13:10:14 +02:00
parent 432d51a926
commit 20a1f26127
2 changed files with 24 additions and 0 deletions

View File

@@ -123,6 +123,26 @@ void cmConfigureLog::EndLine()
this->Stream << std::endl;
}
void cmConfigureLog::BeginArray()
{
++this->Indent;
}
void cmConfigureLog::NextArrayElement()
{
assert(this->Indent);
--this->Indent;
this->BeginLine() << '-';
this->EndLine();
++this->Indent;
}
void cmConfigureLog::EndArray()
{
assert(this->Indent);
--this->Indent;
}
void cmConfigureLog::BeginObject(cm::string_view key)
{
this->BeginLine() << key << ':';

View File

@@ -34,6 +34,10 @@ public:
void BeginEvent(std::string const& kind, cmMakefile const& mf);
void EndEvent();
void BeginArray();
void NextArrayElement();
void EndArray();
void BeginObject(cm::string_view key);
void EndObject();