aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.h')
-rw-r--r--gdb/top.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/gdb/top.h b/gdb/top.h
index 9f9a028..67782ac 100644
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -174,7 +174,9 @@ class switch_thru_all_uis
{
public:
- switch_thru_all_uis () : m_iter (ui_list), m_save_ui (&current_ui)
+ switch_thru_all_uis ()
+ : m_iter (ui_list),
+ m_save_ui (&current_ui)
{
current_ui = ui_list;
}
@@ -182,10 +184,7 @@ public:
DISABLE_COPY_AND_ASSIGN (switch_thru_all_uis);
/* If done iterating, return true; otherwise return false. */
- bool done () const
- {
- return m_iter == NULL;
- }
+ bool done () const { return m_iter == NULL; }
/* Move to the next UI, setting current_ui if iteration is not yet
complete. */
@@ -196,7 +195,7 @@ public:
current_ui = m_iter;
}
- private:
+private:
/* Used to iterate through the UIs. */
struct ui *m_iter;
@@ -205,16 +204,16 @@ public:
scoped_restore_tmpl<struct ui *> m_save_ui;
};
- /* Traverse through all UI, and switch the current UI to the one
+/* Traverse through all UI, and switch the current UI to the one
being iterated. */
-#define SWITCH_THRU_ALL_UIS() \
+#define SWITCH_THRU_ALL_UIS() \
for (switch_thru_all_uis stau_state; !stau_state.done (); stau_state.next ())
using ui_range = next_range<ui>;
/* An adapter that can be used to traverse over all UIs. */
-static inline
-ui_range all_uis ()
+static inline ui_range
+all_uis ()
{
return ui_range (ui_list);
}