Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions clang/include/clang/Basic/CustomizableOptional.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ template <typename T> class CustomizableOptional {

void reset() { Storage.reset(); }

LLVM_DEPRECATED("Use &*X instead.", "&*X")
constexpr const T *getPointer() const { return &Storage.value(); }
LLVM_DEPRECATED("Use &*X instead.", "&*X")
T *getPointer() { return &Storage.value(); }
LLVM_DEPRECATED("std::optional::value is throwing. Use *X instead", "*X")
constexpr const T &value() const & { return Storage.value(); }
LLVM_DEPRECATED("std::optional::value is throwing. Use *X instead", "*X")
T &value() & { return Storage.value(); }

constexpr explicit operator bool() const { return has_value(); }
constexpr bool has_value() const { return Storage.has_value(); }
constexpr const T *operator->() const { return &Storage.value(); }
Expand All @@ -90,8 +81,6 @@ template <typename T> class CustomizableOptional {
return has_value() ? operator*() : std::forward<U>(alt);
}

LLVM_DEPRECATED("std::optional::value is throwing. Use *X instead", "*X")
T &&value() && { return std::move(Storage.value()); }
T &&operator*() && { return std::move(Storage.value()); }

template <typename U> T value_or(U &&alt) && {
Expand Down