1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -37,7 +37,7 @@ static void handle_sigint(int)
g_debug_session = nullptr;
}
static void handle_print_registers(const PtraceRegisters& regs)
static void handle_print_registers(PtraceRegisters const& regs)
{
#if ARCH(I386)
outln("eax={:p} ebx={:p} ecx={:p} edx={:p}", regs.eax, regs.ebx, regs.ecx, regs.edx);
@ -52,7 +52,7 @@ static void handle_print_registers(const PtraceRegisters& regs)
#endif
}
static bool handle_disassemble_command(const String& command, FlatPtr first_instruction)
static bool handle_disassemble_command(String const& command, FlatPtr first_instruction)
{
auto parts = command.split(' ');
size_t number_of_instructions_to_disassemble = 5;
@ -90,7 +90,7 @@ static bool handle_disassemble_command(const String& command, FlatPtr first_inst
return true;
}
static bool handle_backtrace_command(const PtraceRegisters& regs)
static bool handle_backtrace_command(PtraceRegisters const& regs)
{
#if ARCH(I386)
auto ebp_val = regs.ebp;
@ -122,7 +122,7 @@ static bool insert_breakpoint_at_address(FlatPtr address)
return g_debug_session->insert_breakpoint(address);
}
static bool insert_breakpoint_at_source_position(const String& file, size_t line)
static bool insert_breakpoint_at_source_position(String const& file, size_t line)
{
auto result = g_debug_session->insert_breakpoint(file, line);
if (!result.has_value()) {
@ -133,7 +133,7 @@ static bool insert_breakpoint_at_source_position(const String& file, size_t line
return true;
}
static bool insert_breakpoint_at_symbol(const String& symbol)
static bool insert_breakpoint_at_symbol(String const& symbol)
{
auto result = g_debug_session->insert_breakpoint(symbol);
if (!result.has_value()) {
@ -144,7 +144,7 @@ static bool insert_breakpoint_at_symbol(const String& symbol)
return true;
}
static bool handle_breakpoint_command(const String& command)
static bool handle_breakpoint_command(String const& command)
{
auto parts = command.split(' ');
if (parts.size() != 2)
@ -171,7 +171,7 @@ static bool handle_breakpoint_command(const String& command)
return insert_breakpoint_at_symbol(argument);
}
static bool handle_examine_command(const String& command)
static bool handle_examine_command(String const& command)
{
auto parts = command.split(' ');
if (parts.size() != 2)
@ -214,7 +214,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio proc ptrace exec rpath tty sigaction cpath unix", nullptr));
const char* command = nullptr;
char const* command = nullptr;
Core::ArgsParser args_parser;
args_parser.add_positional_argument(command,
"The program to be debugged, along with its arguments",