[libcxx-commits] [PATCH] D120916: [libc++][test] Improves handle formatter.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 19 05:04:28 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb927fba16fc3: [libc++][test] Improves handle formatter. (authored by Mordante).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120916/new/
https://reviews.llvm.org/D120916
Files:
libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.handle.pass.cpp
Index: libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.handle.pass.cpp
===================================================================
--- libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.handle.pass.cpp
+++ libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/formatter.handle.pass.cpp
@@ -31,9 +31,7 @@
template <>
struct std::formatter<color> : std::formatter<const char*> {
- auto format(color c, format_context& ctx) {
- return formatter<const char*>::format(color_names[static_cast<int>(c)], ctx);
- }
+ auto format(color c, auto& ctx) { return formatter<const char*>::format(color_names[static_cast<int>(c)], ctx); }
};
void test(std::string expected, std::string_view fmt, color arg) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120916.416688.patch
Type: text/x-patch
Size: 798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220319/8d01b2f3/attachment.bin>
More information about the libcxx-commits
mailing list