[libcxx-commits] [libcxx] [libc++][locale] Applied `[[nodiscard]]` (PR #200726)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 3 01:11:01 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(); }
----------------
frederick-vs-ja wrote:
Thanks. Then I'm to switch to use `[[nodiscard]]`.
https://github.com/llvm/llvm-project/pull/200726
More information about the libcxx-commits
mailing list