From 20208b37e3ca94f2dc904037acc877fde213781a Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 5 Aug 2011 20:30:56 +0000 Subject: Fix indentation and remove the private section of SBTypeList. SWIG doesn't care about the private section of class SBTypeList. llvm-svn: 136976 --- lldb/scripts/Python/interface/SBType.i | 112 ++++++++++++++++----------------- 1 file changed, 54 insertions(+), 58 deletions(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i index 3bc4c988798..88fc7a3de63 100644 --- a/lldb/scripts/Python/interface/SBType.i +++ b/lldb/scripts/Python/interface/SBType.i @@ -9,63 +9,59 @@ namespace lldb { - class SBType - { - public: - - SBType (const SBType &rhs); - - ~SBType (); - - bool - IsValid() const; - - size_t - GetByteSize() const; - - bool - IsPointerType() const; - - bool - IsReferenceType() const; - - SBType - GetPointerType() const; - - SBType - GetPointeeType() const; - - SBType - GetReferenceType() const; - - SBType - GetDereferencedType() const; - - SBType - GetBasicType(lldb::BasicType type) const; - - const char* - GetName(); - }; - - class SBTypeList - { - public: - SBTypeList(); - - void - Append(const SBType& type); - - SBType - GetTypeAtIndex(int index); - - int - GetSize(); - - ~SBTypeList(); - - private: - std::auto_ptr m_content; - }; +class SBType +{ +public: + SBType (const SBType &rhs); + + ~SBType (); + + bool + IsValid() const; + + size_t + GetByteSize() const; + + bool + IsPointerType() const; + + bool + IsReferenceType() const; + + SBType + GetPointerType() const; + + SBType + GetPointeeType() const; + + SBType + GetReferenceType() const; + + SBType + GetDereferencedType() const; + + SBType + GetBasicType(lldb::BasicType type) const; + + const char* + GetName(); +}; + +class SBTypeList +{ +public: + SBTypeList(); + + void + Append(const SBType& type); + + SBType + GetTypeAtIndex(int index); + + int + GetSize(); + + ~SBTypeList(); +}; } // namespace lldb -- cgit v1.2.3