commit | 97dac2b41d59c6577ff4ad647e766eefcfd84d98 | [log] [tgz] |
---|---|---|
author | Zachary Turner <zturner@google.com> | Fri Nov 11 23:57:40 2016 +0000 |
committer | Zachary Turner <zturner@google.com> | Fri Nov 11 23:57:40 2016 +0000 |
tree | 7ab5cd0668ce8b908828fd35a1aaf77d6f3e27e0 | |
parent | cccd305c0d05da191811e1b15b419ef7ac731881 [diff] |
[Support] Introduce llvm::formatv() function. This introduces a new type-safe general purpose formatting library. It provides compile-time type safety, does not require a format specifier (since the type is deduced), and provides mechanisms for extending the format capability to user defined types, and overriding the formatting behavior for existing types. This patch additionally adds documentation for the API to the LLVM programmer's manual. Mailing List Thread: http://lists.llvm.org/pipermail/llvm-dev/2016-October/105836.html Differential Revision: https://reviews.llvm.org/D25587 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286682 91177308-0d34-0410-b5e6-96231b3b80d8