[all-commits] [llvm/llvm-project] 372f78: [ADT] Add [[nodiscard]] to more classes (NFC) (#16...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Sep 28 10:27:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 372f78643e7154f8b3f28a01aebdc1aab87168fb
      https://github.com/llvm/llvm-project/commit/372f78643e7154f8b3f28a01aebdc1aab87168fb
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-09-28 (Sun, 28 Sep 2025)

  Changed paths:
    M llvm/include/llvm/ADT/ImmutableMap.h
    M llvm/include/llvm/ADT/SparseSet.h
    M llvm/include/llvm/ADT/StringMap.h
    M llvm/include/llvm/ADT/StringSet.h

  Log Message:
  -----------
  [ADT] Add [[nodiscard]] to more classes (NFC) (#161044)

This patch adds [[nodiscard]] to user-facing functions in set/map
classes if they return non-void values and appear to have no side
effect.



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