[libcxx-commits] [libcxx] WIP [libc++][ranges] Applied [[nodiscard]] to `adjacent_view` (PR #205206)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 25 03:54:30 PDT 2026


================
@@ -0,0 +1,86 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++20
+
+// Test the libc++ extension that std::ranges::adjacent_view and std::views::adjacent are marked as [[nodiscard]].
----------------
frederick-vs-ja wrote:

```suggestion
// Test the libc++ extension that std::ranges::adjacent_view and std::views::adjacent are marked as [[nodiscard]].

```

It might be better to have an empty line below this line.

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


More information about the libcxx-commits mailing list