[all-commits] [llvm/llvm-project] 813f48: [ADT] Use has_value (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jun 19 18:10:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 813f487228837fa4460c527e81e23fbc8fbf8198
      https://github.com/llvm/llvm-project/commit/813f487228837fa4460c527e81e23fbc8fbf8198
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-06-19 (Sun, 19 Jun 2022)

  Changed paths:
    M clang/include/clang/Basic/DirectoryEntry.h
    M llvm/include/llvm/ADT/Optional.h

  Log Message:
  -----------
  [ADT] Use has_value (NFC)

This patch switches to has_value within Optional.

Since Optional<clang::FileEntryRef> uses custom storage class, this
patch adds has_entry to MapEntryOptionalStorage.




More information about the All-commits mailing list