[libcxx-commits] [PATCH] D152097: [libc++][format] Make public functions nodiscard.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 4 08:35:32 PDT 2023


Mordante created this revision.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This is an extension and only adds the functions that are a considered a
but when called and ignoring the result.

Drive-by sort all nodiscard extensions in the documentation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152097

Files:
  libcxx/docs/UsingLibcxx.rst
  libcxx/include/__format/format_functions.h
  libcxx/test/libcxx/diagnostics/format.nodiscard_extensions.compile.pass.cpp
  libcxx/test/std/utilities/format/format.arguments/format.arg.store/make_format_args.sh.cpp
  libcxx/test/std/utilities/format/format.functions/format.locale.verify.cpp
  libcxx/test/std/utilities/format/format.functions/format.verify.cpp
  libcxx/test/std/utilities/format/format.functions/formatted_size.locale.verify.cpp
  libcxx/test/std/utilities/format/format.functions/formatted_size.verify.cpp
  libcxx/test/std/utilities/format/format.tuple/format.functions.format.verify.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152097.528220.patch
Type: text/x-patch
Size: 51323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230604/f4410b41/attachment-0001.bin>


More information about the libcxx-commits mailing list