LLDB mainline
|
#include <IRDynamicChecks.h>
Public Member Functions | |
ClangDynamicCheckerFunctions () | |
Constructor. | |
~ClangDynamicCheckerFunctions () override | |
Destructor. | |
llvm::Error | Install (DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx) override |
Install the utility functions into a process. | |
bool | DoCheckersExplainStop (lldb::addr_t addr, Stream &message) override |
Public Member Functions inherited from lldb_private::DynamicCheckerFunctions | |
DynamicCheckerFunctions (DynamicCheckerFunctionsKind kind) | |
virtual | ~DynamicCheckerFunctions ()=default |
virtual llvm::Error | Install (DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx)=0 |
Install the utility functions into a process. | |
virtual bool | DoCheckersExplainStop (lldb::addr_t addr, Stream &message)=0 |
DynamicCheckerFunctionsKind | GetKind () const |
Static Public Member Functions | |
static bool | classof (const DynamicCheckerFunctions *checker_funcs) |
Public Attributes | |
std::shared_ptr< UtilityFunction > | m_valid_pointer_check |
std::shared_ptr< UtilityFunction > | m_objc_object_check |
Additional Inherited Members | |
Public Types inherited from lldb_private::DynamicCheckerFunctions | |
enum | DynamicCheckerFunctionsKind { DCF_Clang } |
Definition at line 26 of file IRDynamicChecks.h.
ClangDynamicCheckerFunctions::ClangDynamicCheckerFunctions | ( | ) |
Constructor.
Definition at line 45 of file IRDynamicChecks.cpp.
|
overridedefault |
Destructor.
|
inlinestatic |
Definition at line 35 of file IRDynamicChecks.h.
References lldb_private::DynamicCheckerFunctions::DCF_Clang, and lldb_private::DynamicCheckerFunctions::GetKind().
|
overridevirtual |
Implements lldb_private::DynamicCheckerFunctions.
Definition at line 76 of file IRDynamicChecks.cpp.
References m_objc_object_check, m_valid_pointer_check, and lldb_private::Stream::Printf().
|
overridevirtual |
Install the utility functions into a process.
This binds the instance of DynamicCheckerFunctions to that process.
[in] | diagnostic_manager | A diagnostic manager to report errors to. |
[in] | exe_ctx | The execution context to install the functions into. |
Implements lldb_private::DynamicCheckerFunctions.
Definition at line 50 of file IRDynamicChecks.cpp.
References lldb_private::ObjCLanguageRuntime::CreateObjectChecker(), lldb_private::Target::CreateUtilityFunction(), lldb::eLanguageTypeC, g_valid_pointer_check_text, lldb_private::ObjCLanguageRuntime::Get(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ExecutionContext::GetTargetRef(), m_objc_object_check, m_valid_pointer_check, VALID_OBJC_OBJECT_CHECK_NAME, and VALID_POINTER_CHECK_NAME.
Referenced by lldb_private::ClangExpressionParser::DoPrepareForExecution().
std::shared_ptr<UtilityFunction> lldb_private::ClangDynamicCheckerFunctions::m_objc_object_check |
Definition at line 57 of file IRDynamicChecks.h.
Referenced by DoCheckersExplainStop(), Install(), and lldb_private::IRDynamicChecks::runOnModule().
std::shared_ptr<UtilityFunction> lldb_private::ClangDynamicCheckerFunctions::m_valid_pointer_check |
Definition at line 56 of file IRDynamicChecks.h.
Referenced by DoCheckersExplainStop(), Install(), and lldb_private::IRDynamicChecks::runOnModule().