LLDB  mainline
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lldb_private::ClangDynamicCheckerFunctions Class Reference

#include <IRDynamicChecks.h>

Inheritance diagram for lldb_private::ClangDynamicCheckerFunctions:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::ClangDynamicCheckerFunctions:
Collaboration graph
[legend]

Public Member Functions

 ClangDynamicCheckerFunctions ()
 Constructor. More...
 
virtual ~ClangDynamicCheckerFunctions ()
 Destructor. More...
 
bool Install (DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx) override
 Install the utility functions into a process. More...
 
bool DoCheckersExplainStop (lldb::addr_t addr, Stream &message) override
 
- Public Member Functions inherited from lldb_private::DynamicCheckerFunctions
 DynamicCheckerFunctions (DynamicCheckerFunctionsKind kind)
 
virtual ~DynamicCheckerFunctions ()=default
 
DynamicCheckerFunctionsKind GetKind () const
 

Static Public Member Functions

static bool classof (const DynamicCheckerFunctions *checker_funcs)
 

Public Attributes

std::shared_ptr< UtilityFunctionm_valid_pointer_check
 
std::shared_ptr< UtilityFunctionm_objc_object_check
 

Additional Inherited Members

- Public Types inherited from lldb_private::DynamicCheckerFunctions
enum  DynamicCheckerFunctionsKind { DCF_Clang }
 

Detailed Description

Definition at line 26 of file IRDynamicChecks.h.

Constructor & Destructor Documentation

◆ ClangDynamicCheckerFunctions()

ClangDynamicCheckerFunctions::ClangDynamicCheckerFunctions ( )

Constructor.

Definition at line 44 of file IRDynamicChecks.cpp.

◆ ~ClangDynamicCheckerFunctions()

ClangDynamicCheckerFunctions::~ClangDynamicCheckerFunctions ( )
virtualdefault

Destructor.

Member Function Documentation

◆ classof()

static bool lldb_private::ClangDynamicCheckerFunctions::classof ( const DynamicCheckerFunctions checker_funcs)
inlinestatic

◆ DoCheckersExplainStop()

bool ClangDynamicCheckerFunctions::DoCheckersExplainStop ( lldb::addr_t  addr,
Stream message 
)
overridevirtual

◆ Install()

bool ClangDynamicCheckerFunctions::Install ( DiagnosticManager diagnostic_manager,
ExecutionContext exe_ctx 
)
overridevirtual

Install the utility functions into a process.

This binds the instance of DynamicCheckerFunctions to that process.

Parameters
[in]diagnostic_managerA diagnostic manager to report errors to.
[in]exe_ctxThe execution context to install the functions into.
Returns
True on success; false on failure, or if the functions have already been installed.

Implements lldb_private::DynamicCheckerFunctions.

Definition at line 49 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::PrepareForExecution().

Member Data Documentation

◆ m_objc_object_check

std::shared_ptr<UtilityFunction> lldb_private::ClangDynamicCheckerFunctions::m_objc_object_check

◆ m_valid_pointer_check

std::shared_ptr<UtilityFunction> lldb_private::ClangDynamicCheckerFunctions::m_valid_pointer_check

The documentation for this class was generated from the following files: