| 11156 | } |
| 11157 | |
| 11158 | std::string TagInfo::all() const { |
| 11159 | size_t size = 0; |
| 11160 | for (auto const& spelling : spellings) { |
| 11161 | // Add 2 for the brackes |
| 11162 | size += spelling.size() + 2; |
| 11163 | } |
| 11164 | |
| 11165 | std::string out; out.reserve(size); |
| 11166 | for (auto const& spelling : spellings) { |
| 11167 | out += '['; |
| 11168 | out += spelling; |
| 11169 | out += ']'; |
| 11170 | } |
| 11171 | return out; |
| 11172 | } |
| 11173 | |
| 11174 | std::size_t listTags( Config const& config ) { |
| 11175 | TestSpec testSpec = config.testSpec(); |