[clang] 2898ba5 - [Basic] Remove deprecated methods in MapEntryOptionalStorage

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 19 12:33:37 PST 2022


Author: Kazu Hirata
Date: 2022-11-19T12:33:32-08:00
New Revision: 2898ba5d2eb1952dfd816781b3ca8db05e5673ba

URL: https://github.com/llvm/llvm-project/commit/2898ba5d2eb1952dfd816781b3ca8db05e5673ba
DIFF: https://github.com/llvm/llvm-project/commit/2898ba5d2eb1952dfd816781b3ca8db05e5673ba.diff

LOG: [Basic] Remove deprecated methods in MapEntryOptionalStorage

Note that I deprecated these methods on August 8, 2022 in commit
commit 8e207e4c096e89fa5410b519715aba8c20701061.

Added: 
    

Modified: 
    clang/include/clang/Basic/DirectoryEntry.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/DirectoryEntry.h b/clang/include/clang/Basic/DirectoryEntry.h
index 19d52c09dbcce..9ddeb65ef1945 100644
--- a/clang/include/clang/Basic/DirectoryEntry.h
+++ b/clang/include/clang/Basic/DirectoryEntry.h
@@ -133,35 +133,19 @@ template <class RefTy> class MapEntryOptionalStorage {
   void reset() { MaybeRef = optional_none_tag(); }
 
   bool has_value() const { return MaybeRef.hasOptionalValue(); }
-  LLVM_DEPRECATED("Use has_value instead.", "has_value") bool hasValue() const {
-    return MaybeRef.hasOptionalValue();
-  }
 
   RefTy &value() & {
     assert(has_value());
     return MaybeRef;
   }
-  LLVM_DEPRECATED("Use value instead.", "value") RefTy &getValue() & {
-    assert(has_value());
-    return MaybeRef;
-  }
   RefTy const &value() const & {
     assert(has_value());
     return MaybeRef;
   }
-  LLVM_DEPRECATED("Use value instead.", "value")
-  RefTy const &getValue() const & {
-    assert(has_value());
-    return MaybeRef;
-  }
   RefTy &&value() && {
     assert(has_value());
     return std::move(MaybeRef);
   }
-  LLVM_DEPRECATED("Use value instead.", "value") RefTy &&getValue() && {
-    assert(has_value());
-    return std::move(MaybeRef);
-  }
 
   template <class... Args> void emplace(Args &&...args) {
     MaybeRef = RefTy(std::forward<Args>(args)...);


        


More information about the cfe-commits mailing list