[PATCH] D48966: [Support] Make Error and formatv_object_base printable with formatv().
Sam McCall via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 5 09:26:24 PDT 2018
sammccall updated this revision to Diff 154254.
sammccall added a comment.
Simplify approach, just allow printing anything with operator<< as a fallback.
This reduces coupling and makes more types printable (proved useful/necessary for clangd logging refactor).
Repository:
rL LLVM
https://reviews.llvm.org/D48966
Files:
include/llvm/Support/Error.h
include/llvm/Support/FormatProviders.h
include/llvm/Support/FormatVariadic.h
include/llvm/Support/FormatVariadicDetails.h
unittests/Support/FormatVariadicTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48966.154254.patch
Type: text/x-patch
Size: 6493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180705/5ad95ca4/attachment.bin>
More information about the llvm-commits
mailing list