[PATCH] D27835: Add support to llvm::Twine for storing formatv objects
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 17:11:27 PST 2016
zturner created this revision.
zturner added reviewers: dblaikie, chandlerc, beanz.
zturner added a subscriber: llvm-commits.
Given a function `foo(const Twine &T)`, it would be nice to be able to write `foo(formatv("{0}{1}", x, y));`. This patch enables that.
For some reason there's some formatting-only changes in here. I suspect this is due to an incompatibility between mono-repo and the `git clang-format` extension script. I'll try to clean these up before submitting.
https://reviews.llvm.org/D27835
Files:
llvm/include/llvm/ADT/Twine.h
llvm/lib/Support/Twine.cpp
llvm/unittests/ADT/TwineTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27835.81691.patch
Type: text/x-patch
Size: 35291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161216/74016344/attachment.bin>
More information about the llvm-commits
mailing list