mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cmConfigureLog: support writing array values
This commit is contained in:
@@ -123,6 +123,26 @@ void cmConfigureLog::EndLine()
|
|||||||
this->Stream << std::endl;
|
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)
|
void cmConfigureLog::BeginObject(cm::string_view key)
|
||||||
{
|
{
|
||||||
this->BeginLine() << key << ':';
|
this->BeginLine() << key << ':';
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ public:
|
|||||||
void BeginEvent(std::string const& kind, cmMakefile const& mf);
|
void BeginEvent(std::string const& kind, cmMakefile const& mf);
|
||||||
void EndEvent();
|
void EndEvent();
|
||||||
|
|
||||||
|
void BeginArray();
|
||||||
|
void NextArrayElement();
|
||||||
|
void EndArray();
|
||||||
|
|
||||||
void BeginObject(cm::string_view key);
|
void BeginObject(cm::string_view key);
|
||||||
void EndObject();
|
void EndObject();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user