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]

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< 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 45 of file IRDynamicChecks.cpp.

◆ ~ClangDynamicCheckerFunctions()

ClangDynamicCheckerFunctions::~ClangDynamicCheckerFunctions ( )
overridedefault

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()

llvm::Error 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
Either llvm::ErrorSuccess or Error with llvm::ErrorInfo

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().

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: