================
@@ -255,6 +255,10 @@ template <typename... Ts> inline auto formatv(const char
*Fmt, Ts &&...Vals) {
return formatv<Ts...>(true, Fmt, std::forward<Ts>(Vals)...);
}
+template <typename... Ts> inline auto formatv(StringLiteral Fmt, Ts &&...Vals)
{
----------------
ftynse wrote:
Hmm, I'm surprised `formatv` doesn't take a `StringRef`. This PR is not the
right place for it, but I'd poke at `formatv` to see if we can do that instead
(and I suspect avoid `strlen` internally)
https://github.com/llvm/llvm-project/pull/241935
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits