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 /gdbsupport/gdb_unique_ptr.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/gdb_unique_ptr.h')
-rw-r--r-- | gdbsupport/gdb_unique_ptr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdbsupport/gdb_unique_ptr.h b/gdbsupport/gdb_unique_ptr.h index a3ab624..3081915 100644 --- a/gdbsupport/gdb_unique_ptr.h +++ b/gdbsupport/gdb_unique_ptr.h @@ -30,14 +30,14 @@ namespace gdb xmalloc'ed memory. */ /* The deleter for std::unique_xmalloc_ptr. Uses xfree. */ -template <typename T> +template<typename T> struct xfree_deleter { void operator() (T *ptr) const { xfree (ptr); } }; /* Same, for arrays. */ -template <typename T> +template<typename T> struct xfree_deleter<T[]> { void operator() (T *ptr) const { xfree (ptr); } @@ -46,14 +46,14 @@ struct xfree_deleter<T[]> /* Import the standard unique_ptr to our namespace with a custom deleter. */ -template<typename T> using unique_xmalloc_ptr - = std::unique_ptr<T, xfree_deleter<T>>; +template<typename T> +using unique_xmalloc_ptr = std::unique_ptr<T, xfree_deleter<T>>; /* A no-op deleter. */ template<typename T> struct noop_deleter { - void operator() (T *ptr) const { } + void operator() (T *ptr) const {} }; } /* namespace gdb */ |