aboutsummaryrefslogtreecommitdiff
path: root/gdb/regformats
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 /gdb/regformats
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 'gdb/regformats')
-rw-r--r--gdb/regformats/regdef.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/regformats/regdef.h b/gdb/regformats/regdef.h
index 47b1d1a..cc00dbb 100644
--- a/gdb/regformats/regdef.h
+++ b/gdb/regformats/regdef.h
@@ -19,7 +19,8 @@
#ifndef REGFORMATS_REGDEF_H
#define REGFORMATS_REGDEF_H
-namespace gdb {
+namespace gdb
+{
struct reg
{
@@ -27,13 +28,15 @@ struct reg
: name (""),
offset (_offset),
size (0)
- {}
+ {
+ }
reg (const char *_name, int _offset, int _size)
: name (_name),
offset (_offset),
size (_size)
- {}
+ {
+ }
/* The name of this register - NULL for pad entries. */
const char *name;
@@ -51,15 +54,11 @@ struct reg
bool operator== (const reg &other) const
{
- return (strcmp (name, other.name) == 0
- && offset == other.offset
+ return (strcmp (name, other.name) == 0 && offset == other.offset
&& size == other.size);
}
- bool operator!= (const reg &other) const
- {
- return !(*this == other);
- }
+ bool operator!= (const reg &other) const { return !(*this == other); }
};
} /* namespace gdb */