[all-commits] [llvm/llvm-project] 2529de: [ADT] Deprecate ArrayRef(std::nullopt) (#146011)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Jun 27 01:03:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2529de5c935ad59e5f76d15890f857bf42817bc9
      https://github.com/llvm/llvm-project/commit/2529de5c935ad59e5f76d15890f857bf42817bc9
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M llvm/include/llvm/ADT/ArrayRef.h

  Log Message:
  -----------
  [ADT] Deprecate ArrayRef(std::nullopt) (#146011)

Since the use of std::nullopt outside the context of std::optional is
kind of abuse and not intuitive to new comers, this patch deprecates
the constructor.  All known uses within the LLVM codebase have been
migrated to other constructors.



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