================
@@ -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);
+ }
+
+ /// Get the language-plugin specific boolean option called \c option_name.
+ ///
+ /// If the option doesn't exist or is not a boolean option, returns false.
+ /// Otherwise returns the boolean value of the option.
+ bool GetLanguageOptionAsBoolean(llvm::StringRef option_name) const {
----------------
Michael137 wrote:
Yea agreed, happy to change it to an SBError
https://github.com/llvm/llvm-project/pull/179208
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits