[all-commits] [llvm/llvm-project] 3c4957: [ADT] Add has_value, value, value_or to llvm::Opti...

kazutakahirata via All-commits all-commits at lists.llvm.org
Sat Jun 18 21:21:47 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c49576417bab1b07764aa0b22664cbc8d3c3f53
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-06-18 (Sat, 18 Jun 2022)

  Changed paths:
    M llvm/include/llvm/ADT/Optional.h
    M llvm/unittests/ADT/OptionalTest.cpp

  Log Message:
  [ADT] Add has_value, value, value_or to llvm::Optional

This patch adds has_value, value, value_or to llvm::Optional so that
llvm::Optional looks more like std::optional.

I will keep the existing functions while migrating their callers and
then remove them later.

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

More information about the All-commits mailing list