[all-commits] [llvm/llvm-project] 5512f3: [ADT] Update Optional Deprecation with fix-it

Nathan James via All-commits all-commits at lists.llvm.org
Mon Aug 8 02:39:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5512f398a039e3ed7df502a0c263a8f366a84a4c
      https://github.com/llvm/llvm-project/commit/5512f398a039e3ed7df502a0c263a8f366a84a4c
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

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

  Log Message:
  -----------
  [ADT] Update Optional Deprecation with fix-it

When Optional accessors were deprecated, in D131349,  the standard c++14 style attribute was used.
Clang has a slightly better deprecated attribute that enables simpler migration by embedding fix-its.

Reviewed By: kazu

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




More information about the All-commits mailing list