diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-04 16:51:27 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-04 16:51:27 -0800 |
commit | d2a6114f27016065f6c7e7d39c0412e7d8d5e03b (patch) | |
tree | bc96197e8219779571e52ab1f0304954dd73fb36 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | 343523d040d1ede65a35d8a6d514b0f7c198a3f2 (diff) | |
download | llvm-d2a6114f27016065f6c7e7d39c0412e7d8d5e03b.zip llvm-d2a6114f27016065f6c7e7d39c0412e7d8d5e03b.tar.gz llvm-d2a6114f27016065f6c7e7d39c0412e7d8d5e03b.tar.bz2 |
[lldb/unittests] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated. The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.
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/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index 51ff7e4..2a5718a 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -232,7 +232,7 @@ bool lldb_private::LLDBSWIGPythonRunScriptKeywordProcess( llvm::Optional<std::string> lldb_private::LLDBSWIGPythonRunScriptKeywordThread( const char *python_function_name, const char *session_dictionary_name, lldb::ThreadSP thread) { - return llvm::None; + return std::nullopt; } bool lldb_private::LLDBSWIGPythonRunScriptKeywordTarget( @@ -244,7 +244,7 @@ bool lldb_private::LLDBSWIGPythonRunScriptKeywordTarget( llvm::Optional<std::string> lldb_private::LLDBSWIGPythonRunScriptKeywordFrame( const char *python_function_name, const char *session_dictionary_name, lldb::StackFrameSP frame) { - return llvm::None; + return std::nullopt; } bool lldb_private::LLDBSWIGPythonRunScriptKeywordValue( |