summaryrefslogtreecommitdiff
path: root/lldb/source
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-05-06 08:56:24 -0700
committerKazu Hirata <kazu@google.com>2023-05-06 08:56:24 -0700
commite6b52355a1f3eae9310003ee714c802ac8a63b46 (patch)
tree3da22bfdf08d87147aef37c39c135968d2240b17 /lldb/source
parentdd6a58babc853d180b9a7e5bd709ae12477da004 (diff)
downloadllvm-e6b52355a1f3eae9310003ee714c802ac8a63b46.tar.gz
[lldb] Replace None with std::nullopt in comments (NFC)
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/source')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp2
-rw-r--r--lldb/source/Plugins/Process/Linux/Perf.h4
-rw-r--r--lldb/source/Plugins/TraceExporter/common/TraceHTR.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 052d52e2ddac..851fc743f389 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -2420,7 +2420,7 @@ protected:
}
CommandOptions m_options;
- // Last traversed id used to continue a repeat command. None means
+ // Last traversed id used to continue a repeat command. std::nullopt means
// that all the trace has been consumed.
std::optional<lldb::user_id_t> m_last_id;
};
diff --git a/lldb/source/Plugins/Process/Linux/Perf.h b/lldb/source/Plugins/Process/Linux/Perf.h
index 3f326212cdec..658a5c3cd468 100644
--- a/lldb/source/Plugins/Process/Linux/Perf.h
+++ b/lldb/source/Plugins/Process/Linux/Perf.h
@@ -122,8 +122,8 @@ public:
/// Configuration information for the event.
///
/// \param[in] pid
- /// The process or thread to be monitored by the event. If \b None, then
- /// all threads and processes are monitored.
+ /// The process or thread to be monitored by the event. If \b
+ /// std::nullopt, then all threads and processes are monitored.
static llvm::Expected<PerfEvent>
Init(perf_event_attr &attr, std::optional<lldb::pid_t> pid,
std::optional<lldb::cpu_id_t> core = std::nullopt);
diff --git a/lldb/source/Plugins/TraceExporter/common/TraceHTR.h b/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
index 58a9262370a8..66aa19be1a46 100644
--- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
+++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.h
@@ -215,7 +215,7 @@ public:
///
/// \param[in] func_name
/// The name of the function the 'call' instruction is calling if it can
- /// be determined, None otherwise.
+ /// be determined, std::nullopt otherwise.
void AddCallInstructionMetadata(lldb::addr_t load_addr,
std::optional<ConstString> func_name);