[llvm-dev] RFC: General purpose type-safe formatting library

Nicolai Hähnle via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 14 00:35:39 PDT 2016


On 12.10.2016 05:59, Mehdi Amini via llvm-dev wrote:
>>   If you change a const char * to a StringRef, it can silently succeed
>> while passing your StringRef object to printf.  It should fail to compile!
>
> llvm::format now fails to compile as well :)
>
> However this does not address other issues, like: `format(“%d”, float_var)`

This may be a good time to point at https://reviews.llvm.org/D25018

But if someone ends up doing a full overhaul of the formatting that 
makes that patch unnecessary, I'm happy too.

Cheers,
Nicolai


More information about the llvm-dev mailing list