//===-- UtilityFunction.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_UTILITYFUNCTION_H #define LLDB_EXPRESSION_UTILITYFUNCTION_H #include <memory> #include <string> #include "lldb/Expression/Expression.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private.h" namespace lldb_private { /// \class UtilityFunction UtilityFunction.h /// "lldb/Expression/UtilityFunction.h" Encapsulates a bit of source code that /// provides a function that is callable /// /// LLDB uses expressions for various purposes, notably to call functions /// and as a backend for the expr command. UtilityFunction encapsulates a /// self-contained function meant to be used from other code. Utility /// functions can perform error-checking for ClangUserExpressions, class UtilityFunction : public Expression { … }; } // namespace lldb_private #endif // LLDB_EXPRESSION_UTILITYFUNCTION_H