diff options
Diffstat (limited to 'include/lldb/API/SBDeclaration.h')
-rw-r--r-- | include/lldb/API/SBDeclaration.h | 123 |
1 files changed, 52 insertions, 71 deletions
diff --git a/include/lldb/API/SBDeclaration.h b/include/lldb/API/SBDeclaration.h index 5461a1f15c2e..42cf76963847 100644 --- a/include/lldb/API/SBDeclaration.h +++ b/include/lldb/API/SBDeclaration.h @@ -1,4 +1,5 @@ -//===-- SBDeclaration.h -------------------------------------------*- C++ -*-===// +//===-- SBDeclaration.h -------------------------------------------*- C++ +//-*-===// // // The LLVM Compiler Infrastructure // @@ -14,76 +15,56 @@ #include "lldb/API/SBFileSpec.h" namespace lldb { - - class LLDB_API SBDeclaration - { - public: - - SBDeclaration (); - - SBDeclaration (const lldb::SBDeclaration &rhs); - - ~SBDeclaration (); - - const lldb::SBDeclaration & - operator = (const lldb::SBDeclaration &rhs); - - bool - IsValid () const; - - lldb::SBFileSpec - GetFileSpec () const; - - uint32_t - GetLine () const; - - uint32_t - GetColumn () const; - - void - SetFileSpec (lldb::SBFileSpec filespec); - - void - SetLine (uint32_t line); - - void - SetColumn (uint32_t column); - - bool - operator == (const lldb::SBDeclaration &rhs) const; - - bool - operator != (const lldb::SBDeclaration &rhs) const; - - bool - GetDescription (lldb::SBStream &description); - - protected: - - lldb_private::Declaration * - get (); - - private: - friend class SBValue; - - const lldb_private::Declaration * - operator->() const; - - lldb_private::Declaration & - ref(); - - const lldb_private::Declaration & - ref() const; - - SBDeclaration (const lldb_private::Declaration *lldb_object_ptr); - - void - SetDeclaration (const lldb_private::Declaration &lldb_object_ref); - - std::unique_ptr<lldb_private::Declaration> m_opaque_ap; - }; - - + +class LLDB_API SBDeclaration { +public: + SBDeclaration(); + + SBDeclaration(const lldb::SBDeclaration &rhs); + + ~SBDeclaration(); + + const lldb::SBDeclaration &operator=(const lldb::SBDeclaration &rhs); + + bool IsValid() const; + + lldb::SBFileSpec GetFileSpec() const; + + uint32_t GetLine() const; + + uint32_t GetColumn() const; + + void SetFileSpec(lldb::SBFileSpec filespec); + + void SetLine(uint32_t line); + + void SetColumn(uint32_t column); + + bool operator==(const lldb::SBDeclaration &rhs) const; + + bool operator!=(const lldb::SBDeclaration &rhs) const; + + bool GetDescription(lldb::SBStream &description); + +protected: + lldb_private::Declaration *get(); + +private: + friend class SBValue; + + const lldb_private::Declaration *operator->() const; + + lldb_private::Declaration &ref(); + + const lldb_private::Declaration &ref() const; + + SBDeclaration(const lldb_private::Declaration *lldb_object_ptr); + + void SetDeclaration(const lldb_private::Declaration &lldb_object_ref); + + std::unique_ptr<lldb_private::Declaration> m_opaque_ap; +}; + } // namespace lldb #endif // LLDB_SBDeclaration_h_ |