003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/include/lldb/Expression
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
include
/
lldb
/
Expression
/
📁
..
📄
DWARFExpression.h
(9.9 KB)
📄
DiagnosticManager.h
(4.16 KB)
📄
DynamicCheckerFunctions.h
(2.07 KB)
📄
Expression.h
(3.76 KB)
📄
ExpressionParser.h
(5.08 KB)
📄
ExpressionSourceCode.h
(1.18 KB)
📄
ExpressionTypeSystemHelper.h
(1.35 KB)
📄
ExpressionVariable.h
(8.38 KB)
📄
FunctionCaller.h
(12.98 KB)
📄
IRExecutionUnit.h
(15.17 KB)
📄
IRInterpreter.h
(1.84 KB)
📄
IRMemoryMap.h
(5.6 KB)
📄
LLVMUserExpression.h
(5.03 KB)
📄
Materializer.h
(4.21 KB)
📄
REPL.h
(5.03 KB)
📄
UserExpression.h
(12.4 KB)
📄
UtilityFunction.h
(4.61 KB)
Editing: DynamicCheckerFunctions.h
//===-- DynamicCheckerFunctions.h -------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_EXPRESSION_DYNAMICCHECKERFUNCTIONS_H #define LLDB_EXPRESSION_DYNAMICCHECKERFUNCTIONS_H #include "lldb/lldb-types.h" namespace lldb_private { class DiagnosticManager; class ExecutionContext; /// 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. class DynamicCheckerFunctions { public: enum DynamicCheckerFunctionsKind { DCF_Clang, }; DynamicCheckerFunctions(DynamicCheckerFunctionsKind kind) : m_kind(kind) {} virtual ~DynamicCheckerFunctions() = default; /// Install the utility functions into a process. This binds the instance /// of DynamicCheckerFunctions to that process. /// /// \param[in] diagnostic_manager /// A diagnostic manager to report errors to. /// /// \param[in] exe_ctx /// The execution context to install the functions into. /// /// \return /// True on success; false on failure, or if the functions have /// already been installed. virtual bool Install(DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx) = 0; virtual bool DoCheckersExplainStop(lldb::addr_t addr, Stream &message) = 0; DynamicCheckerFunctionsKind GetKind() const { return m_kind; } private: const DynamicCheckerFunctionsKind m_kind; }; } // namespace lldb_private #endif // LLDB_EXPRESSION_DYNAMICCHECKERFUNCTIONS_H
Upload File
Create Folder