[all-commits] [llvm/llvm-project] eeac9e: [ADT] Deprecate Optional::map

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Aug 14 17:52:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eeac9e923283d8535e4175fef35e132e796fa78e
      https://github.com/llvm/llvm-project/commit/eeac9e923283d8535e4175fef35e132e796fa78e
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-14 (Sun, 14 Aug 2022)

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

  Log Message:
  -----------
  [ADT] Deprecate Optional::map

This patch deprecates Optional::map in favor of Optional::transform
for consistency with std::optional::transform in C++23.

Note that I've migrated all known users of Optional::map.

Differential Revision: https://reviews.llvm.org/D131842




More information about the All-commits mailing list