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/python/py-varobj.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-gdb-users/simark/clang-format.tar.gz |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/python/py-varobj.c')
-rw-r--r-- | gdb/python/py-varobj.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/python/py-varobj.c b/gdb/python/py-varobj.c index 08e790b7e7e..1ec41a99737 100644 --- a/gdb/python/py-varobj.c +++ b/gdb/python/py-varobj.c @@ -72,8 +72,8 @@ py_varobj_iter::next () gdbpy_enter_varobj enter_py (m_var); - scoped_restore set_options = make_scoped_restore (&gdbpy_current_print_options, - &m_opts); + scoped_restore set_options + = make_scoped_restore (&gdbpy_current_print_options, &m_opts); gdbpy_ref<> item (PyIter_Next (m_iter)); @@ -94,8 +94,8 @@ py_varobj_iter::next () return NULL; } - std::string name_str = string_printf ("<error at %d>", - m_next_raw_index++); + std::string name_str + = string_printf ("<error at %d>", m_next_raw_index++); item.reset (Py_BuildValue ("(ss)", name_str.c_str (), value_str.get ())); if (item == NULL) @@ -115,7 +115,7 @@ py_varobj_iter::next () if (!PyArg_ParseTuple (item.get (), "sO", &name, &py_v)) { gdbpy_print_stack (); - error (_("Invalid item from the child list")); + error (_ ("Invalid item from the child list")); } vitem = new varobj_item (); @@ -152,22 +152,22 @@ py_varobj_get_iterator (struct varobj *var, PyObject *printer, if (!PyObject_HasAttr (printer, gdbpy_children_cst)) return NULL; - scoped_restore set_options = make_scoped_restore (&gdbpy_current_print_options, - opts); + scoped_restore set_options + = make_scoped_restore (&gdbpy_current_print_options, opts); - gdbpy_ref<> children (PyObject_CallMethodObjArgs (printer, gdbpy_children_cst, - NULL)); + gdbpy_ref<> children (PyObject_CallMethodObjArgs (printer, + gdbpy_children_cst, NULL)); if (children == NULL) { gdbpy_print_stack (); - error (_("Null value returned for children")); + error (_ ("Null value returned for children")); } gdbpy_ref<> iter (PyObject_GetIter (children.get ())); if (iter == NULL) { gdbpy_print_stack (); - error (_("Could not get children iterator")); + error (_ ("Could not get children iterator")); } return std::unique_ptr<varobj_iter> (new py_varobj_iter (var, |