[all-commits] [llvm/llvm-project] 8f9d28: [ADT] Use std::nullopt instead of llvm::None in Op...

kazutakahirata via All-commits all-commits at lists.llvm.org
Thu Dec 8 10:07:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f9d28d8597766b4b8cc52857832ca4d905bcf3e
      https://github.com/llvm/llvm-project/commit/8f9d28d8597766b4b8cc52857832ca4d905bcf3e
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M llvm/unittests/ADT/OptionalTest.cpp

  Log Message:
  -----------
  [ADT] Use std::nullopt instead of llvm::None in OptionalTest.cpp

This patch updates the test for the streaming operator for
llvm::Optional to use std::nullopt instead of llvm::None.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

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




More information about the All-commits mailing list