search for: convertarg

Displaying 4 results from an estimated 4 matches for "convertarg".

2016 Oct 12
2
RFC: General purpose type-safe formatting library
...rn you of the problem in the test suite, support runtime format strings can be very helpful. For example, it could allow you to wrap a call to format in some other function, like: template<typename... Ts> void wrap_format(const char *Format, Ts &&... Args) { dbgs().format(Format, ConvertArg(Args)...); } On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> wrote: > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Ahh, UDLs also wouldn't permit non literal format strings, which is a deal...
2016 Oct 12
3
RFC: General purpose type-safe formatting library
...test > suite, support runtime format strings can be very helpful. For example, it > could allow you to wrap a call to format in some other function, like: > > template<typename... Ts> > void wrap_format(const char *Format, Ts &&... Args) { > dbgs().format(Format, ConvertArg(Args)...); > } > > On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> > wrote: > > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Ahh, UDLs also wouldn't permit non literal format st...
2016 Oct 12
5
RFC: General purpose type-safe formatting library
...test > suite, support runtime format strings can be very helpful. For example, it > could allow you to wrap a call to format in some other function, like: > > template<typename... Ts> > void wrap_format(const char *Format, Ts &&... Args) { > dbgs().format(Format, ConvertArg(Args)...); > } > > On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> > wrote: > > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Ahh, UDLs also wouldn't permit non literal format st...
2016 Oct 12
2
RFC: General purpose type-safe formatting library
Ahh, UDLs also wouldn't permit non literal format strings, which is a deal breaker imo On Wed, Oct 12, 2016 at 7:03 AM Zachary Turner <zturner at google.com> wrote: > I'm not sure that would work well. The implementation relies on being able > to index into the parameter pack. How would you do that if each parameter > is streamed in? > > "{0} {1}"_fs(1, 2)