[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 01:08:04 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:
We don't have anything in-place to validate whether the option is something that the expression parser will understand. But happy to change the SBAPI setter to return a boolean for now, in case we ever want to/are able to validate the option name
https://github.com/llvm/llvm-project/pull/179208
More information about the lldb-commits
mailing list