[libcxx-commits] [PATCH] D103466: [libc++][format] Adds char formatter.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 18 10:30:21 PDT 2021


Mordante added inline comments.


================
Comment at: libcxx/test/std/utilities/format/format.functions/tests.inc:113
+  test_exception("A precision field isn't allowed in this format-spec",
+                 STR("{:.}"), CharT('*'));
+  test_exception("A precision field isn't allowed in this format-spec",
----------------
vitaut wrote:
> vitaut wrote:
> > This should probably be fixed in a different diff but `.` alone is not a prevision field at all: http://eel.is/c++draft/format.string.std.
> AFAICS this should give "The format-spec precision field doesn't contain a value or arg-id" according to the parsing logic in https://reviews.llvm.org/D103368.
Due to https://reviews.llvm.org/D103368#inline-990725 this will no longer mention precision in the exception message. I was still addressing other review comments so haven't gotten around to update this patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103466/new/

https://reviews.llvm.org/D103466



More information about the libcxx-commits mailing list