diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-07 14:18:35 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-07 14:18:35 -0800 |
commit | 2fe8327406050d2585d2ced910a678e28caefcf5 (patch) | |
tree | da95c78fa33c17cf7829bbe6f5e0bfa62e0579ae /lldb/docs | |
parent | f190ce625ab0dc5a5e2b2515e6d26debb34843ab (diff) | |
download | llvm-2fe8327406050d2585d2ced910a678e28caefcf5.tar.gz |
[lldb] Use std::optional instead of llvm::Optional (NFC)
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to clean up the "using" declarations, #include
"llvm/ADT/Optional.h", etc.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'lldb/docs')
-rw-r--r-- | lldb/docs/resources/contributing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/docs/resources/contributing.rst b/lldb/docs/resources/contributing.rst index 26b13a5b745c..b2d4cf0e4718 100644 --- a/lldb/docs/resources/contributing.rst +++ b/lldb/docs/resources/contributing.rst @@ -44,7 +44,7 @@ rules of thumb: missing object files, or otherwise inconsistent debug info, LLVM's error handling types such as `llvm::Expected<T> <https://llvm.org/doxygen/classllvm_1_1Expected.html>`_ or - `llvm::Optional<T> + `std::optional<T> <https://llvm.org/doxygen/classllvm_1_1Optional.html>`_ should be used. Functions that may fail should return their result using these wrapper types instead of using a bool to indicate success. Returning |