[libcxx-commits] [libcxx] [libc++][filesystem] Applied `[[nodiscard]]` (PR #171085)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 11 19:54:12 PST 2025


================
@@ -49,7 +49,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_DEPRECATED_WITH_CHAR8_T path u8path(_InputIt __f,
 
 #  if defined(_LIBCPP_WIN32API) && _LIBCPP_HAS_LOCALIZATION
 template <class _InputIt, __enable_if_t<__is_pathable<_InputIt>::value, int> = 0>
-_LIBCPP_HIDE_FROM_ABI _LIBCPP_DEPRECATED_WITH_CHAR8_T path u8path(_InputIt __f, _NullSentinel) {
+[[nodiscard]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_DEPRECATED_WITH_CHAR8_T path u8path(_InputIt __f, _NullSentinel) {
----------------
frederick-vs-ja wrote:

I strongly believe that this overload is non-conforming and should be removed (or reformed, but I strongly think that reforming will be better). I think it would be better to avoid touching it, given it's not being tested. (No change strictly requested.)

https://github.com/llvm/llvm-project/pull/171085


More information about the libcxx-commits mailing list