ComparatorLibs: Add stringify to hierarchy for easy printing
This commit is contained in:
@@ -90,8 +90,12 @@ public:
|
||||
{
|
||||
std::string result = "Name: " + name + "\n";
|
||||
result += "Exported QualeIface APIs:\n";
|
||||
for (const auto& api : exportedQualeIfaceApis) {
|
||||
result += " - " + api.name + "\n";
|
||||
for (size_t i = 0; i < exportedQualeIfaceApis.size(); ++i)
|
||||
{
|
||||
result += " - " + exportedQualeIfaceApis[i].name;
|
||||
if (i + 1 < exportedQualeIfaceApis.size()) {
|
||||
result += "\n";
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user