diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-23 19:23:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 19:23:10 +0000 |
commit | 097af7fc8f8688cc21453a5561347f14ca7c5771 (patch) | |
tree | 3278cf5420b9c3a9e07d8ccfd4afd8e7fb36a886 /include/llvm/Support/Format.h | |
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
Diffstat (limited to 'include/llvm/Support/Format.h')
0 files changed, 0 insertions, 0 deletions