*** This commit represents a complete reformatting of the LLDB source code
*** to conform to clang-format’s LLVM style.  This kind of mass change has
*** two obvious implications:

Firstly, merging this particular commit into a downstream fork may be a huge
effort.  Alternatively, it may be worth merging all changes up to this commit,
performing the same reformatting operation locally, and then discarding the
merge for this particular commit.  The commands used to accomplish this
reformatting were as follows (with current working directory as the root of
the repository):

    find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} +
    find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ;

The version of clang-format used was 3.9.0, and autopep8 was 1.2.4.

Secondly, “blame” style tools will generally point to this commit instead of
a meaningful prior commit.  There are alternatives available that will attempt
to look through this change and find the appropriate prior commit.  YMMV.

llvm-svn: 280751
diff --git a/lldb/source/API/SBMemoryRegionInfoList.cpp b/lldb/source/API/SBMemoryRegionInfoList.cpp
index b2e9747..f7ce81a 100644
--- a/lldb/source/API/SBMemoryRegionInfoList.cpp
+++ b/lldb/source/API/SBMemoryRegionInfoList.cpp
@@ -18,145 +18,100 @@
 using namespace lldb;
 using namespace lldb_private;
 
-class MemoryRegionInfoListImpl
-{
+class MemoryRegionInfoListImpl {
 public:
-    MemoryRegionInfoListImpl () :
-    m_regions()
-    {
-    }
+  MemoryRegionInfoListImpl() : m_regions() {}
 
-    MemoryRegionInfoListImpl (const MemoryRegionInfoListImpl& rhs) :
-    m_regions(rhs.m_regions)
-    {
-    }
+  MemoryRegionInfoListImpl(const MemoryRegionInfoListImpl &rhs)
+      : m_regions(rhs.m_regions) {}
 
-    MemoryRegionInfoListImpl&
-    operator = (const MemoryRegionInfoListImpl& rhs)
-    {
-        if (this == &rhs)
-            return *this;
-        m_regions = rhs.m_regions;
-        return *this;
-    }
+  MemoryRegionInfoListImpl &operator=(const MemoryRegionInfoListImpl &rhs) {
+    if (this == &rhs)
+      return *this;
+    m_regions = rhs.m_regions;
+    return *this;
+  }
 
-    uint32_t
-    GetSize ()
-    {
-        return m_regions.size();
-    }
+  uint32_t GetSize() { return m_regions.size(); }
 
-    void
-    Append (const lldb::SBMemoryRegionInfo& sb_region)
-    {
-        m_regions.push_back(sb_region);
-    }
+  void Append(const lldb::SBMemoryRegionInfo &sb_region) {
+    m_regions.push_back(sb_region);
+  }
 
-    void
-    Append (const MemoryRegionInfoListImpl& list)
-    {
-        for (auto val : list.m_regions)
-            Append (val);
-    }
+  void Append(const MemoryRegionInfoListImpl &list) {
+    for (auto val : list.m_regions)
+      Append(val);
+  }
 
-    void
-    Clear ()
-    {
-        m_regions.clear();
-    }
+  void Clear() { m_regions.clear(); }
 
-    bool
-    GetMemoryRegionInfoAtIndex (uint32_t index, SBMemoryRegionInfo &region_info)
-    {
-        if (index >= GetSize())
-            return false;
-        region_info = m_regions[index];
-        return true;
-    }
+  bool GetMemoryRegionInfoAtIndex(uint32_t index,
+                                  SBMemoryRegionInfo &region_info) {
+    if (index >= GetSize())
+      return false;
+    region_info = m_regions[index];
+    return true;
+  }
 
 private:
-    std::vector<lldb::SBMemoryRegionInfo> m_regions;
+  std::vector<lldb::SBMemoryRegionInfo> m_regions;
 };
 
-SBMemoryRegionInfoList::SBMemoryRegionInfoList () :
-    m_opaque_ap (new MemoryRegionInfoListImpl())
-{
+SBMemoryRegionInfoList::SBMemoryRegionInfoList()
+    : m_opaque_ap(new MemoryRegionInfoListImpl()) {}
+
+SBMemoryRegionInfoList::SBMemoryRegionInfoList(
+    const SBMemoryRegionInfoList &rhs)
+    : m_opaque_ap(new MemoryRegionInfoListImpl(*rhs.m_opaque_ap)) {}
+
+SBMemoryRegionInfoList::~SBMemoryRegionInfoList() {}
+
+const SBMemoryRegionInfoList &SBMemoryRegionInfoList::
+operator=(const SBMemoryRegionInfoList &rhs) {
+  if (this != &rhs) {
+    *m_opaque_ap = *rhs.m_opaque_ap;
+  }
+  return *this;
 }
 
-SBMemoryRegionInfoList::SBMemoryRegionInfoList (const SBMemoryRegionInfoList& rhs) :
-    m_opaque_ap (new MemoryRegionInfoListImpl(*rhs.m_opaque_ap))
-{
+uint32_t SBMemoryRegionInfoList::GetSize() const {
+  return m_opaque_ap->GetSize();
 }
 
-SBMemoryRegionInfoList::~SBMemoryRegionInfoList ()
-{
+bool SBMemoryRegionInfoList::GetMemoryRegionAtIndex(
+    uint32_t idx, SBMemoryRegionInfo &region_info) {
+  Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API));
+
+  bool result = m_opaque_ap->GetMemoryRegionInfoAtIndex(idx, region_info);
+
+  if (log) {
+    SBStream sstr;
+    region_info.GetDescription(sstr);
+    log->Printf("SBMemoryRegionInfoList::GetMemoryRegionAtIndex (this.ap=%p, "
+                "idx=%d) => SBMemoryRegionInfo (this.ap=%p, '%s')",
+                static_cast<void *>(m_opaque_ap.get()), idx,
+                static_cast<void *>(region_info.m_opaque_ap.get()),
+                sstr.GetData());
+  }
+
+  return result;
 }
 
-const SBMemoryRegionInfoList &
-SBMemoryRegionInfoList::operator = (const SBMemoryRegionInfoList &rhs)
-{
-    if (this != &rhs)
-    {
-        *m_opaque_ap = *rhs.m_opaque_ap;
-    }
-    return *this;
+void SBMemoryRegionInfoList::Clear() { m_opaque_ap->Clear(); }
+
+void SBMemoryRegionInfoList::Append(SBMemoryRegionInfo &sb_region) {
+  m_opaque_ap->Append(sb_region);
 }
 
-uint32_t
-SBMemoryRegionInfoList::GetSize() const
-{
-    return m_opaque_ap->GetSize();
+void SBMemoryRegionInfoList::Append(SBMemoryRegionInfoList &sb_region_list) {
+  m_opaque_ap->Append(*sb_region_list);
 }
 
-
-bool
-SBMemoryRegionInfoList::GetMemoryRegionAtIndex (uint32_t idx, SBMemoryRegionInfo &region_info)
-{
-    Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-
-    bool result = m_opaque_ap->GetMemoryRegionInfoAtIndex(idx, region_info);
-
-    if (log)
-    {
-        SBStream sstr;
-        region_info.GetDescription (sstr);
-        log->Printf ("SBMemoryRegionInfoList::GetMemoryRegionAtIndex (this.ap=%p, idx=%d) => SBMemoryRegionInfo (this.ap=%p, '%s')",
-                     static_cast<void*>(m_opaque_ap.get()), idx,
-                     static_cast<void*>(region_info.m_opaque_ap.get()), sstr.GetData());
-    }
-
-    return result;
+const MemoryRegionInfoListImpl *SBMemoryRegionInfoList::operator->() const {
+  return m_opaque_ap.get();
 }
 
-void
-SBMemoryRegionInfoList::Clear()
-{
-
-    m_opaque_ap->Clear();
+const MemoryRegionInfoListImpl &SBMemoryRegionInfoList::operator*() const {
+  assert(m_opaque_ap.get());
+  return *m_opaque_ap.get();
 }
-
-void
-SBMemoryRegionInfoList::Append(SBMemoryRegionInfo &sb_region)
-{
-    m_opaque_ap->Append(sb_region);
-}
-
-void
-SBMemoryRegionInfoList::Append(SBMemoryRegionInfoList &sb_region_list)
-{
-    m_opaque_ap->Append(*sb_region_list);
-}
-
-const MemoryRegionInfoListImpl *
-SBMemoryRegionInfoList::operator->() const
-{
-    return m_opaque_ap.get();
-}
-
-const MemoryRegionInfoListImpl&
-SBMemoryRegionInfoList::operator*() const
-{
-    assert (m_opaque_ap.get());
-    return *m_opaque_ap.get();
-}
-