commit | 097af7fc8f8688cc21453a5561347f14ca7c5771 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Aug 23 19:23:10 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Aug 23 19:23:10 2008 +0000 |
tree | 3278cf5420b9c3a9e07d8ccfd4afd8e7fb36a886 | |
parent | 8ff7ce3dd2c0b57283372e9ed939ab07018fec2f [diff] |
add a simple mechanism for formatted output. This gives raw_ostream's all the power and risk of fprintf format strings. Use them like this: OS << format("%10.4f", 42.0) << "\n" << format("%x", 42) << '\n'; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55246 91177308-0d34-0410-b5e6-96231b3b80d8