diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/top.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/top.h')
-rw-r--r-- | gdb/top.h | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -174,7 +174,9 @@ class switch_thru_all_uis { public: - switch_thru_all_uis () : m_iter (ui_list), m_save_ui (¤t_ui) + switch_thru_all_uis () + : m_iter (ui_list), + m_save_ui (¤t_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); } |