[all-commits] [llvm/llvm-project] bbb8f7: [libc++][flat_map] Applied `[[nodiscard]]` (#169453)

Hristo Hristov via All-commits all-commits at lists.llvm.org
Wed Nov 26 12:17:04 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bbb8f7aaf8c2cc7f68b59ed0d5abed068c581682
      https://github.com/llvm/llvm-project/commit/bbb8f7aaf8c2cc7f68b59ed0d5abed068c581682
  Author: Hristo Hristov <hghristov.rmm at gmail.com>
  Date:   2025-11-26 (Wed, 26 Nov 2025)

  Changed paths:
    M libcxx/include/__flat_map/flat_map.h
    M libcxx/include/__flat_map/utils.h
    M libcxx/test/libcxx/diagnostics/flat_map.nodiscard.verify.cpp
    M libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/index_transparent.pass.cpp

  Log Message:
  -----------
  [libc++][flat_map] Applied `[[nodiscard]]` (#169453)

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

- https://libcxx.llvm.org/CodingGuidelines.html#apply-nodiscard-where-relevant



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