[llvm-dev] Can we start using std::to_string?

Diana Picus via llvm-dev llvm-dev at lists.llvm.org
Wed May 17 03:12:00 PDT 2017


Hi all,

I tried to use std::to_string somewhere and one of the bots yelled at
me [1] because it couldn't find it.

Searching through the mailing lists reveals a long stream of fixup
patches trying to avoid std::to_string, but there are uses of it in
tree in the AVR and Hexagon backends, libFuzzer and the Gold plugin. I
can only imagine they got away with it because the particular bots
that can't find std::to_string are probably not building them.

Should we fix the bots and remove llvm::to_string? Or is it still too soon?
Alternatively, should we replace all uses of std::to_string with
llvm::to_string?

Cheers,
Diana

[1] http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/8853/steps/build%20android/logs/stdio


More information about the llvm-dev mailing list