================
@@ -458,7 +458,12 @@ class ValueObject {
virtual bool GetDeclaration(Declaration &decl);
// The functions below should NOT be modified by subclasses
+ // This gets the current error for this ValueObject, it may update the value
+ // to ensure that the error is up to date.
const Status &GetError();
+
+ // Check the current error state without updating the value:
+ const Status &CheckError() { return m_error; }
----------------
clayborg wrote:
`PeekError()`?
https://github.com/llvm/llvm-project/pull/80222
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits