LLDB mainline
|
Encapsulates dynamic check functions used by expressions. More...
#include <DynamicCheckerFunctions.h>
Public Types | |
enum | DynamicCheckerFunctionsKind { DCF_Clang } |
Public Member Functions | |
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 |
Private Attributes | |
const DynamicCheckerFunctionsKind | m_kind |
Encapsulates dynamic check functions used by expressions.
Each of the utility functions encapsulated in this class is responsible for validating some data that an expression is about to use. Examples are:
a = *b; // check that b is a valid pointer [b init]; // check that b is a valid object to send "init" to
The class installs each checker function into the target process and makes it available to IRDynamicChecks to use.
Definition at line 32 of file DynamicCheckerFunctions.h.
Enumerator | |
---|---|
DCF_Clang |
Definition at line 34 of file DynamicCheckerFunctions.h.
|
inline |
Definition at line 38 of file DynamicCheckerFunctions.h.
|
virtualdefault |
|
pure virtual |
Implemented in lldb_private::ClangDynamicCheckerFunctions.
Referenced by lldb_private::ThreadPlanCallUserExpression::GetRealStopInfo().
|
inline |
Definition at line 57 of file DynamicCheckerFunctions.h.
References m_kind.
Referenced by lldb_private::ClangDynamicCheckerFunctions::classof().
|
pure virtual |
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. |
Implemented in lldb_private::ClangDynamicCheckerFunctions.
|
private |
Definition at line 60 of file DynamicCheckerFunctions.h.
Referenced by GetKind().