mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Meta+LibC through LibHTTP: Make clang-format-10 clean
Why break at LibHTTP? Because "Meta+Libraries" would be insanely large, and breaking between LibHTTP and LibJS makes the commits roughly evenly large.
This commit is contained in:
parent
64cc3f51d0
commit
ede5dbd7b3
58 changed files with 87 additions and 89 deletions
|
@ -52,7 +52,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~DynamicEntry() {}
|
||||
~DynamicEntry() { }
|
||||
|
||||
Elf32_Sword tag() const { return m_dyn.d_tag; }
|
||||
Elf32_Addr ptr() const { return m_dyn.d_un.d_ptr; }
|
||||
|
@ -71,7 +71,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~Symbol() {}
|
||||
~Symbol() { }
|
||||
|
||||
const char* name() const { return m_dynamic.symbol_string_table_string(m_sym.st_name); }
|
||||
unsigned section_index() const { return m_sym.st_shndx; }
|
||||
|
@ -99,7 +99,7 @@ public:
|
|||
, m_name(name)
|
||||
{
|
||||
}
|
||||
~Section() {}
|
||||
~Section() { }
|
||||
|
||||
const char* name() const { return m_name; }
|
||||
unsigned offset() const { return m_section_offset; }
|
||||
|
@ -140,7 +140,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~Relocation() {}
|
||||
~Relocation() { }
|
||||
|
||||
unsigned offset_in_section() const { return m_offset_in_section; }
|
||||
unsigned offset() const { return m_rel.r_offset; }
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace ELF {
|
|||
|
||||
class Loader : public RefCounted<Loader> {
|
||||
public:
|
||||
static NonnullRefPtr<Loader> create(const u8* data, size_t size, bool verbose_logging=true) { return adopt(*new Loader(data, size, verbose_logging)); }
|
||||
static NonnullRefPtr<Loader> create(const u8* data, size_t size, bool verbose_logging = true) { return adopt(*new Loader(data, size, verbose_logging)); }
|
||||
~Loader();
|
||||
|
||||
bool load();
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibELF/exec_elf.h>
|
||||
#include <LibELF/Validation.h>
|
||||
#include <LibELF/exec_elf.h>
|
||||
|
||||
namespace ELF {
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace ELF {
|
||||
|
||||
bool validate_elf_header(const Elf32_Ehdr& elf_header, size_t file_size, bool verbose=true);
|
||||
bool validate_elf_header(const Elf32_Ehdr& elf_header, size_t file_size, bool verbose = true);
|
||||
bool validate_program_headers(const Elf32_Ehdr& elf_header, size_t file_size, u8* buffer, size_t buffer_size, String& interpreter_path);
|
||||
|
||||
} // end namespace ELF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue