[all-commits] [llvm/llvm-project] 1f5537: [libc++][ranges] Applied [[nodiscard]] to `lazy_sp...

Lucas Mellone via All-commits all-commits at lists.llvm.org
Thu Jul 9 03:27:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f55374f8d05bda4844a192848368a84e976a8ec
      https://github.com/llvm/llvm-project/commit/1f55374f8d05bda4844a192848368a84e976a8ec
  Author: Lucas Mellone <github.snugness349 at passinbox.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M libcxx/include/__ranges/lazy_split_view.h
    A libcxx/test/libcxx/ranges/range.adaptors/range.lazy.split/nodiscard.verify.cpp

  Log Message:
  -----------
  [libc++][ranges] Applied [[nodiscard]] to `lazy_split` (#208036)

[[nodiscard]] should be applied to functions where discarding the return
value is most likely a correctness issue.

- https://libcxx.llvm.org/CodingGuidelines.html
- https://wg21.link/range.lazy.split

Towards https://github.com/llvm/llvm-project/issues/172124

---------

Co-authored-by: Hristo Hristov <zingam at outlook.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list