[libcxx-commits] [PATCH] D155366: [libc++][format] Improves run-time diagnostics.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 15 11:36:32 PDT 2023


Mordante created this revision.
Herald added a project: All.
Mordante updated this revision to Diff 540694.
Mordante added a comment.
Mordante published this revision for review.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

CI fixes.


After parsing a std-format-spec it's validated, depending on the type used some
format options are not allowed. This improves the error messages in the
exceptions thrown upon failure.

Depends on D155364 <https://reviews.llvm.org/D155364>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155366

Files:
  libcxx/include/__format/formatter_bool.h
  libcxx/include/__format/formatter_char.h
  libcxx/include/__format/formatter_floating_point.h
  libcxx/include/__format/formatter_integer.h
  libcxx/include/__format/formatter_pointer.h
  libcxx/include/__format/parser_std_format_spec.h
  libcxx/test/std/containers/container.adaptors/container.adaptors.format/format.functions.tests.h
  libcxx/test/std/containers/sequences/vector.bool/vector.bool.fmt/format.functions.tests.h
  libcxx/test/std/utilities/format/format.functions/fill.unicode.pass.cpp
  libcxx/test/std/utilities/format/format.functions/format_tests.h
  libcxx/test/std/utilities/format/format.range/format.range.fmtset/format.functions.tests.h
  libcxx/test/std/utilities/format/format.range/format.range.fmtstr/format.functions.tests.h
  libcxx/test/std/utilities/format/format.range/format.range.formatter/format.functions.tests.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155366.540694.patch
Type: text/x-patch
Size: 76406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230715/4af3b55f/attachment-0001.bin>


More information about the libcxx-commits mailing list