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-ref.h | |
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-ref.h')
-rw-r--r-- | gdb/python/py-ref.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gdb/python/py-ref.h b/gdb/python/py-ref.h index 6283af7b523..46e527c29b3 100644 --- a/gdb/python/py-ref.h +++ b/gdb/python/py-ref.h @@ -26,20 +26,14 @@ template<typename T> struct gdbpy_ref_policy { - static void incref (T *ptr) - { - Py_INCREF (ptr); - } - - static void decref (T *ptr) - { - Py_DECREF (ptr); - } + static void incref (T *ptr) { Py_INCREF (ptr); } + + static void decref (T *ptr) { Py_DECREF (ptr); } }; /* A gdb::ref_ptr that has been specialized for Python objects or their "subclasses". */ -template<typename T = PyObject> using gdbpy_ref - = gdb::ref_ptr<T, gdbpy_ref_policy<T>>; +template<typename T = PyObject> +using gdbpy_ref = gdb::ref_ptr<T, gdbpy_ref_policy<T>>; #endif /* PYTHON_PY_REF_H */ |