[all-commits] [llvm/llvm-project] bd6a17: [ADT] Deprecate llvm::NoneType

kazutakahirata via All-commits all-commits at lists.llvm.org
Wed Nov 23 16:33:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd6a17069da66938217d0606ae8e6571ccaefb0b
      https://github.com/llvm/llvm-project/commit/bd6a17069da66938217d0606ae8e6571ccaefb0b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

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

  Log Message:
  -----------
  [ADT] Deprecate llvm::NoneType

I've migrated all known uses of NoneType to std::nullopt_t.  This
patch deprecates NoneType.

I'm using "typedef" instead of "using" because somehow
"[[deprecated]]" and "using" do not seem to get along.

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/D138623




More information about the All-commits mailing list