aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/new-op.cc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdbsupport/new-op.cc
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadgdb-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/new-op.cc')
-rw-r--r--gdbsupport/new-op.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/gdbsupport/new-op.cc b/gdbsupport/new-op.cc
index 6a056ef..6737b52 100644
--- a/gdbsupport/new-op.cc
+++ b/gdbsupport/new-op.cc
@@ -19,7 +19,7 @@
/* GCC does not understand __has_feature. */
#if !defined(__has_feature)
-# define __has_feature(x) 0
+#define __has_feature(x) 0
#endif
#if !__has_feature(address_sanitizer) && !defined(__SANITIZE_ADDRESS__)
@@ -56,7 +56,7 @@ operator new (std::size_t sz)
if (sz == 0)
sz = 1;
- void *p = malloc (sz); /* ARI: malloc */
+ void *p = malloc (sz); /* ARI: malloc */
if (p == NULL)
{
/* If the user decides to continue debugging, throw a
@@ -66,34 +66,34 @@ operator new (std::size_t sz)
can only ever throw std::bad_alloc, or something that extends
it. */
try
- {
- malloc_failure (sz);
- }
+ {
+ malloc_failure (sz);
+ }
catch (gdb_exception &ex)
- {
- throw gdb_quit_bad_alloc (std::move (ex));
- }
+ {
+ throw gdb_quit_bad_alloc (std::move (ex));
+ }
}
return p;
}
void *
-operator new (std::size_t sz, const std::nothrow_t&) noexcept
+operator new (std::size_t sz, const std::nothrow_t &) noexcept
{
/* malloc (0) is unpredictable; avoid it. */
if (sz == 0)
sz = 1;
- return malloc (sz); /* ARI: malloc */
+ return malloc (sz); /* ARI: malloc */
}
void *
operator new[] (std::size_t sz)
{
- return ::operator new (sz);
+ return ::operator new (sz);
}
-void*
-operator new[] (std::size_t sz, const std::nothrow_t&) noexcept
+void *
+operator new[] (std::size_t sz, const std::nothrow_t &) noexcept
{
return ::operator new (sz, std::nothrow);
}
@@ -110,7 +110,7 @@ operator delete (void *p) noexcept
}
void
-operator delete (void *p, const std::nothrow_t&) noexcept
+operator delete (void *p, const std::nothrow_t &) noexcept
{
return ::operator delete (p);
}
@@ -128,7 +128,7 @@ operator delete[] (void *p) noexcept
}
void
-operator delete[] (void *p, const std::nothrow_t&) noexcept
+operator delete[] (void *p, const std::nothrow_t &) noexcept
{
return ::operator delete (p, std::nothrow);
}