aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-cplus.h
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/compile/compile-cplus.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/compile/compile-cplus.h')
-rw-r--r--gdb/compile/compile-cplus.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/gdb/compile/compile-cplus.h b/gdb/compile/compile-cplus.h
index 91f2e13..5e495a1 100644
--- a/gdb/compile/compile-cplus.h
+++ b/gdb/compile/compile-cplus.h
@@ -50,7 +50,6 @@ struct scope_component
bool operator== (const scope_component &lhs, const scope_component &rhs);
bool operator!= (const scope_component &lhs, const scope_component &rhs);
-
/* A single compiler scope used to define a type.
A compile_scope is a list of scope_components, where all leading
@@ -71,16 +70,14 @@ public:
using std::vector<scope_component>::operator[];
compile_scope ()
- : m_nested_type (GCC_TYPE_NONE), m_pushed (false)
+ : m_nested_type (GCC_TYPE_NONE),
+ m_pushed (false)
{
}
/* Return the gcc_type of the type if it is a nested definition.
Returns GCC_TYPE_NONE if this type was not nested. */
- gcc_type nested_type ()
- {
- return m_nested_type;
- }
+ gcc_type nested_type () { return m_nested_type; }
private:
@@ -131,8 +128,7 @@ public:
: compile_instance (&gcc_cp->base, m_default_cflags),
m_plugin (gcc_cp)
{
- m_plugin.set_callbacks (gcc_cplus_convert_symbol,
- gcc_cplus_symbol_address,
+ m_plugin.set_callbacks (gcc_cplus_convert_symbol, gcc_cplus_symbol_address,
gcc_cplus_enter_scope, gcc_cplus_leave_scope,
this);
}
@@ -144,9 +140,9 @@ public:
type). GCC_CP_ACCESS_NONE is the default nested access.
The new GCC type is returned. */
- gcc_type convert_type
- (struct type *type,
- enum gcc_cp_symbol_kind nested_access = GCC_CP_ACCESS_NONE);
+ gcc_type convert_type (struct type *type,
+ enum gcc_cp_symbol_kind nested_access
+ = GCC_CP_ACCESS_NONE);
/* Return a handle for the GCC plug-in. */
gcc_cp_plugin &plugin () { return m_plugin; }