diff options
Diffstat (limited to 'include/lldb/API/SBError.h')
-rw-r--r-- | include/lldb/API/SBError.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/lldb/API/SBError.h b/include/lldb/API/SBError.h index a27d2d042690..b076f87b7669 100644 --- a/include/lldb/API/SBError.h +++ b/include/lldb/API/SBError.h @@ -1,9 +1,8 @@ //===-- SBError.h -----------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// 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 // //===----------------------------------------------------------------------===// @@ -47,27 +46,30 @@ public: int SetErrorStringWithFormat(const char *format, ...) __attribute__((format(printf, 2, 3))); + explicit operator bool() const; + bool IsValid() const; bool GetDescription(lldb::SBStream &description); protected: + friend class SBBreakpoint; + friend class SBBreakpointLocation; + friend class SBBreakpointName; friend class SBCommandReturnObject; + friend class SBCommunication; friend class SBData; friend class SBDebugger; - friend class SBCommunication; friend class SBHostOS; friend class SBPlatform; friend class SBProcess; + friend class SBReproducer; friend class SBStructuredData; + friend class SBTarget; friend class SBThread; friend class SBTrace; - friend class SBTarget; friend class SBValue; friend class SBWatchpoint; - friend class SBBreakpoint; - friend class SBBreakpointLocation; - friend class SBBreakpointName; lldb_private::Status *get(); @@ -80,7 +82,7 @@ protected: void SetError(const lldb_private::Status &lldb_error); private: - std::unique_ptr<lldb_private::Status> m_opaque_ap; + std::unique_ptr<lldb_private::Status> m_opaque_up; void CreateIfNeeded(); }; |