[Lldb-commits] [lldb] [lldb][Expression] Add API to set/get language-specific expression options (PR #179208)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 3 03:20:33 PST 2026
================
@@ -481,7 +483,40 @@ class EvaluateExpressionOptions {
void SetIsForUtilityExpr(bool b) { m_running_utility_expression = b; }
+ /// Set language-plugin specific option called \c option_name to
+ /// the specified boolean \c value.
+ void SetLanguageOption(llvm::StringRef option_name, bool value) {
+ if (option_name.empty())
+ return;
+
+ GetLanguageOptions().AddBooleanItem(option_name, value);
----------------
Michael137 wrote:
Ended up making it return a `llvm::Expected`/`SBError`
https://github.com/llvm/llvm-project/pull/179208
More information about the lldb-commits
mailing list