search for: d25018

Displaying 3 results from an estimated 3 matches for "d25018".

Did you mean: 25018
2016 Oct 14
2
RFC: General purpose type-safe formatting library
...ntly 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
2016 Oct 31
0
RFC: General purpose type-safe formatting library
...r 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attach...
2016 Oct 12
15
RFC: General purpose type-safe formatting library
A while back llvm::format() was introduced that made it possible to combine printf-style formatting with llvm streams. However, this still comes with all the risks and pitfalls of printf. Everyone is no-doubt familiar with these problems, but here are just a few anyway: 1. *Not type-safe.* Not all compilers warn when you mess up the format specifier. And when you're writing your own