summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Linux
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2015-10-27 00:45:06 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2015-10-27 00:45:06 +0000
commit222b937c55ca5e789cb925878f3fd2250d3e1cbe (patch)
treeb9e00039134c8f035416a1f7162f7622d821db6b /lldb/source/Plugins/Platform/Linux
parentfee370be72da1c2092bee2494443375ebf1ed1a3 (diff)
downloadbcm5719-llvm-222b937c55ca5e789cb925878f3fd2250d3e1cbe.tar.gz
bcm5719-llvm-222b937c55ca5e789cb925878f3fd2250d3e1cbe.zip
Fix Clang-tidy modernize-use-override warnings in source/Plugins/LanguageRuntime and Platform; other minor fixes.
llvm-svn: 251374
Diffstat (limited to 'lldb/source/Plugins/Platform/Linux')
-rw-r--r--lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp16
-rw-r--r--lldb/source/Plugins/Platform/Linux/PlatformLinux.h10
2 files changed, 9 insertions, 17 deletions
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
index a576cce3734..8dc9769844c 100644
--- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -56,13 +56,12 @@ namespace
class PlatformLinuxProperties : public Properties
{
public:
- static ConstString&
- GetSettingName ();
-
PlatformLinuxProperties();
- virtual
- ~PlatformLinuxProperties() = default;
+ ~PlatformLinuxProperties() override = default;
+
+ static ConstString&
+ GetSettingName ();
private:
static const PropertyDefinition*
@@ -121,7 +120,6 @@ PlatformLinux::DebuggerInitialize (Debugger &debugger)
}
}
-
//------------------------------------------------------------------
PlatformSP
@@ -177,7 +175,6 @@ PlatformLinux::CreateInstance (bool force, const ArchSpec *arch)
return PlatformSP();
}
-
ConstString
PlatformLinux::GetPluginNameStatic (bool is_host)
{
@@ -393,7 +390,6 @@ PlatformLinux::GetFileWithUUID (const FileSpec &platform_file,
return Error();
}
-
//------------------------------------------------------------------
/// Default Constructor
//------------------------------------------------------------------
@@ -408,9 +404,7 @@ PlatformLinux::PlatformLinux (bool is_host) :
/// The destructor is virtual since this class is designed to be
/// inherited from by the plug-in instance.
//------------------------------------------------------------------
-PlatformLinux::~PlatformLinux()
-{
-}
+PlatformLinux::~PlatformLinux() = default;
bool
PlatformLinux::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info)
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.h b/lldb/source/Plugins/Platform/Linux/PlatformLinux.h
index f938e25d447..770a20c90cc 100644
--- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.h
+++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.h
@@ -22,6 +22,9 @@ namespace platform_linux {
class PlatformLinux : public PlatformPOSIX
{
public:
+ PlatformLinux(bool is_host);
+
+ ~PlatformLinux() override;
static void
DebuggerInitialize (Debugger &debugger);
@@ -32,11 +35,6 @@ namespace platform_linux {
static void
Terminate ();
- PlatformLinux (bool is_host);
-
- virtual
- ~PlatformLinux();
-
//------------------------------------------------------------
// lldb_private::PluginInterface functions
//------------------------------------------------------------
@@ -121,4 +119,4 @@ namespace platform_linux {
} // namespace platform_linux
} // namespace lldb_private
-#endif // liblldb_PlatformLinux_h_
+#endif // liblldb_PlatformLinux_h_
OpenPOWER on IntegriCloud