[libcxx-commits] [libcxx] [libc++][locale] Applied `[[nodiscard]]` (PR #200726)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 3 01:09:12 PDT 2026


================
@@ -1018,16 +1029,16 @@ public:
     return do_in(__st, __frm, __frm_end, __frm_nxt, __to, __to_end, __to_nxt);
   }
 
-  _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
+  [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
----------------
philnik777 wrote:

We don't plan to accept `-fchar8_t` pre-C++20.

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


More information about the libcxx-commits mailing list