| 169 | } |
| 170 | |
| 171 | static std::string to_cpp_name(const std::string& full_name) { |
| 172 | std::string cname; |
| 173 | cname.reserve(full_name.size() + 8); |
| 174 | for (size_t i = 0; i < full_name.size(); ++i) { |
| 175 | if (full_name[i] == '.') { |
| 176 | cname.append("::", 2); |
| 177 | } else { |
| 178 | cname.push_back(full_name[i]); |
| 179 | } |
| 180 | } |
| 181 | return cname; |
| 182 | } |
| 183 | |
| 184 | bool generate_declarations(const std::set<std::string>& ref_msgs, |
| 185 | const std::set<std::string>& ref_maps, |
no test coverage detected