Removed dead code and improve test coverage

This commit is contained in:
Bartek Kryza
2023-01-18 21:32:21 +01:00
parent 00b9321034
commit a9f793e407
30 changed files with 98 additions and 174 deletions

View File

@@ -149,9 +149,8 @@ YAML::Emitter &operator<<(YAML::Emitter &out, const layout_hint &c)
YAML::Emitter &operator<<(YAML::Emitter &out, const source_location &sc)
{
out << YAML::BeginMap;
out << YAML::Key << "location" << YAML::Value << sc.location;
out << YAML::Key << "location_type" << YAML::Value
<< to_string(sc.location_type);
out << YAML::Key << to_string(sc.location_type) << YAML::Value
<< sc.location;
out << YAML::EndMap;
return out;
}