| 1195 | /// Create formatted StringError object. |
| 1196 | template <typename... Ts> |
| 1197 | inline Error createStringError(std::error_code EC, char const *Fmt, |
| 1198 | const Ts &... Vals) { |
| 1199 | std::string Buffer; |
| 1200 | raw_string_ostream Stream(Buffer); |
| 1201 | Stream << format(Fmt, Vals...); |
| 1202 | return make_error<StringError>(Stream.str(), EC); |
| 1203 | } |
| 1204 | |
| 1205 | Error createStringError(std::error_code EC, char const *Msg); |
| 1206 |
nothing calls this directly
no test coverage detected