| 717 | } |
| 718 | |
| 719 | void EmitMacroList(YAML::Emitter& out, absl::string_view key, |
| 720 | const absl::flat_hash_set<std::string>& macros) { |
| 721 | if (macros.empty()) { |
| 722 | return; |
| 723 | } |
| 724 | out << YAML::Key << std::string(key); |
| 725 | out << YAML::Value << YAML::BeginSeq; |
| 726 | std::vector<std::string> sorted_macros(macros.begin(), macros.end()); |
| 727 | absl::c_sort(sorted_macros); |
| 728 | for (const std::string& macro : sorted_macros) { |
| 729 | out << YAML::Value << YAML::DoubleQuoted << macro; |
| 730 | } |
| 731 | out << YAML::EndSeq; |
| 732 | } |
| 733 | |
| 734 | void EmitFunctionList( |
| 735 | YAML::Emitter& out, absl::string_view key, |
no test coverage detected