Skip to content

Commit cc7e206

Browse files
[lldb] Remove redundant declarations (NFC) (#169003)
In C++17, static constexpr members are implicitly inline, so they no longer require an out-of-line definition. Identified with readability-redundant-declaration.
1 parent b6dadc7 commit cc7e206

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lldb/source/Target/Target.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ static Status installExecutable(const Installer &installer) {
156156
return Status();
157157
}
158158

159-
constexpr std::chrono::milliseconds EvaluateExpressionOptions::default_timeout;
160-
161159
Target::Arch::Arch(const ArchSpec &spec)
162160
: m_spec(spec),
163161
m_plugin_up(PluginManager::CreateArchitectureInstance(spec)) {}

lldb/source/Utility/StringExtractorGDBRemote.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#include <cstring>
1313
#include <optional>
1414

15-
constexpr lldb::pid_t StringExtractorGDBRemote::AllProcesses;
16-
constexpr lldb::tid_t StringExtractorGDBRemote::AllThreads;
17-
1815
StringExtractorGDBRemote::ResponseType
1916
StringExtractorGDBRemote::GetResponseType() const {
2017
if (m_packet.empty())

0 commit comments

Comments
 (0)