[PATCH] D132304: [ADT] Deprecate Any::hasValue
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 08:57:43 PDT 2022
kazu created this revision.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch deprecates Any::hasValue as I've migrated all known uses of
it to Any::has_value. I'm planning to remove the deprecated method in
3 months or so.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132304
Files:
llvm/include/llvm/ADT/Any.h
Index: llvm/include/llvm/ADT/Any.h
===================================================================
--- llvm/include/llvm/ADT/Any.h
+++ llvm/include/llvm/ADT/Any.h
@@ -100,6 +100,7 @@
return *this;
}
+ LLVM_DEPRECATED("Use has_value instead.", "has_value")
bool hasValue() const { return !!Storage; }
bool has_value() const { return !!Storage; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132304.454225.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220820/8190c304/attachment-0001.bin>
More information about the llvm-commits
mailing list