summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2015-10-22 00:45:41 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2015-10-22 00:45:41 +0000
commit05e0fc85b2fc2e2261bf22fa5ec8d4f77afd1b45 (patch)
treece4605fb86692b7623e1181cdbc38b24e1538435 /lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
parent82ffb8e90495a580b8f2a9248001851a52301e56 (diff)
downloadbcm5719-llvm-05e0fc85b2fc2e2261bf22fa5ec8d4f77afd1b45.tar.gz
bcm5719-llvm-05e0fc85b2fc2e2261bf22fa5ec8d4f77afd1b45.zip
Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins/LanguageRuntime; other minor fixes.
Differential Revision: http://reviews.llvm.org/D13966 llvm-svn: 250966
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h67
1 files changed, 30 insertions, 37 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
index ce278b84757..342824e79b1 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
@@ -1,4 +1,4 @@
-//===-- AppleObjCRuntime.h ----------------------------------------*- C++ -*-===//
+//===-- AppleObjCRuntime.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -13,7 +13,6 @@
// C Includes
// C++ Includes
// Other libraries and framework includes
-
#include "llvm/ADT/Optional.h"
// Project includes
@@ -29,6 +28,14 @@ class AppleObjCRuntime :
public lldb_private::ObjCLanguageRuntime
{
public:
+ ~AppleObjCRuntime() override;
+
+ //------------------------------------------------------------------
+ // Static Functions
+ //------------------------------------------------------------------
+ // Note there is no CreateInstance, Initialize & Terminate functions here, because
+ // you can't make an instance of this generic runtime.
+
static bool classof(const ObjCLanguageRuntime* runtime)
{
switch (runtime->GetRuntimeVersion())
@@ -41,8 +48,6 @@ public:
}
}
- virtual ~AppleObjCRuntime();
-
// These are generic runtime functions:
bool
GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) override;
@@ -86,54 +91,45 @@ public:
lldb::ModuleSP
GetObjCModule ();
- //------------------------------------------------------------------
- // Static Functions
- //------------------------------------------------------------------
- // Note there is no CreateInstance, Initialize & Terminate functions here, because
- // you can't make an instance of this generic runtime.
-
-
// Sync up with the target
void
ModulesDidLoad (const ModuleList &module_list) override;
-protected:
- bool
- CalculateHasNewLiteralsAndIndexing() override;
-
- static bool
- AppleIsModuleObjCLibrary (const lldb::ModuleSP &module_sp);
-
- static ObjCRuntimeVersions
- GetObjCVersion (Process *process, lldb::ModuleSP &objc_module_sp);
-
- void
- ReadObjCLibraryIfNeeded (const ModuleList &module_list);
-
- //------------------------------------------------------------------
- // PluginInterface protocol
- //------------------------------------------------------------------
-public:
void
SetExceptionBreakpoints() override;
void
- ClearExceptionBreakpoints () override;
+ ClearExceptionBreakpoints() override;
bool
- ExceptionBreakpointsAreSet () override;
+ ExceptionBreakpointsAreSet() override;
bool
- ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason) override;
+ ExceptionBreakpointsExplainStop(lldb::StopInfoSP stop_reason) override;
lldb::SearchFilterSP
- CreateExceptionSearchFilter () override;
+ CreateExceptionSearchFilter() override;
uint32_t
- GetFoundationVersion ();
+ GetFoundationVersion();
protected:
+ // Call CreateInstance instead.
+ AppleObjCRuntime(Process *process);
+
+ bool
+ CalculateHasNewLiteralsAndIndexing() override;
+
+ static bool
+ AppleIsModuleObjCLibrary(const lldb::ModuleSP &module_sp);
+
+ static ObjCRuntimeVersions
+ GetObjCVersion(Process *process, lldb::ModuleSP &objc_module_sp);
+
+ void
+ ReadObjCLibraryIfNeeded(const ModuleList &module_list);
+
Address *
GetPrintForDebuggerAddr();
@@ -145,11 +141,8 @@ protected:
std::unique_ptr<FunctionCaller> m_print_object_caller_up;
llvm::Optional<uint32_t> m_Foundation_major;
-
- // Call CreateInstance instead.
- AppleObjCRuntime(Process *process);
};
} // namespace lldb_private
-#endif // liblldb_AppleObjCRuntime_h_
+#endif // liblldb_AppleObjCRuntime_h_
OpenPOWER on IntegriCloud