This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v3 16/17] Update cleanup comment in ui-out.h
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>, Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Wed, 23 Jan 2019 15:21:30 +0000
- Subject: [PATCH v3 16/17] Update cleanup comment in ui-out.h
- References: <20190123152131.29893-1-palves@redhat.com>
From: Tom Tromey <tom@tromey.com>
ui-out.h refers to some cleanup functions that no longer exist. This
updates the reference.
gdb/ChangeLog:
yyyy-mm-dd Tom Tromey <tom@tromey.com>
* ui-out.h (class ui_out_emit_type): Update comment.
---
gdb/ui-out.h | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index 5f4eea5491..8d183060b5 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -195,11 +195,9 @@ class ui_out
ui_out_level *current_level () const;
};
-/* This is similar to make_cleanup_ui_out_tuple_begin_end and
- make_cleanup_ui_out_list_begin_end, but written as an RAII template
- class. It takes the ui_out_type as a template parameter. Normally
- this is used via the typedefs ui_out_emit_tuple and
- ui_out_emit_list. */
+/* Start a new tuple or list on construction, and end it on
+ destruction. Normally this is used via the typedefs
+ ui_out_emit_tuple and ui_out_emit_list. */
template<ui_out_type Type>
class ui_out_emit_type
{
--
2.14.4