[all-commits] [llvm/llvm-project] 79b7fe: [libc++][type_traits] Applied `[[nodiscard]]` (#20...

A. Jiang via All-commits all-commits at lists.llvm.org
Mon Jun 1 16:29:49 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79b7fefcacdc7b5dc8817cecddcbb9a8da3c996c
      https://github.com/llvm/llvm-project/commit/79b7fefcacdc7b5dc8817cecddcbb9a8da3c996c
  Author: A. Jiang <de34 at live.cn>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M libcxx/include/__type_traits/integral_constant.h
    M libcxx/include/__type_traits/is_constant_evaluated.h
    M libcxx/include/__type_traits/is_within_lifetime.h
    A libcxx/test/libcxx/type_traits/nodiscard.verify.cpp
    M libcxx/test/std/utilities/meta/meta.const.eval/is_within_lifetime.compile.pass.cpp

  Log Message:
  -----------
  [libc++][type_traits] Applied `[[nodiscard]]` (#200760)

`[[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/type.traits



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