[libcxx-commits] [libcxx] [libc++] Applied `[[nodiscard]]` to Language Support (partially) (PR #169611)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 26 02:05:51 PST 2025


================
@@ -0,0 +1,91 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03
+
+// check that <utility> functions are marked [[nodiscard]]
----------------
Zingam wrote:

```suggestion
// Check that functions are marked [[nodiscard]]
```

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


More information about the libcxx-commits mailing list