aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-c.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-c.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-c.h')
-rw-r--r--gdb/compile/compile-c.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/compile/compile-c.h b/gdb/compile/compile-c.h
index f047774..8ad80f9 100644
--- a/gdb/compile/compile-c.h
+++ b/gdb/compile/compile-c.h
@@ -39,6 +39,7 @@ extern gcc_c_symbol_address_function gcc_symbol_address;
class compile_c_instance : public compile_instance
{
public:
+
explicit compile_c_instance (struct gcc_c_context *gcc_c)
: compile_instance (&gcc_c->base, m_default_cflags),
m_plugin (gcc_c)
@@ -55,6 +56,7 @@ public:
gcc_c_plugin &plugin () { return m_plugin; }
private:
+
/* Default compiler flags for C. */
static const char *m_default_cflags;
@@ -67,13 +69,9 @@ private:
register number, where each element indicates if the corresponding
register is needed to compute a local variable. */
-extern std::vector<bool>
- generate_c_for_variable_locations
- (compile_instance *compiler,
- string_file *stream,
- struct gdbarch *gdbarch,
- const struct block *block,
- CORE_ADDR pc);
+extern std::vector<bool> generate_c_for_variable_locations (
+ compile_instance *compiler, string_file *stream, struct gdbarch *gdbarch,
+ const struct block *block, CORE_ADDR pc);
/* Get the GCC mode attribute value for a given type size. */
@@ -91,6 +89,6 @@ extern std::string c_get_range_decl_name (const struct dynamic_prop *prop);
address. */
extern gdb::unique_xmalloc_ptr<char>
- c_symbol_substitution_name (struct symbol *sym);
+c_symbol_substitution_name (struct symbol *sym);
#endif /* COMPILE_COMPILE_C_H */