From d33fadb34a33c4b81c05f380d660821e58fad018 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Sun, 28 Apr 2024 19:36:59 +0300 Subject: [PATCH] Just reformatting --- elfio/elfio_header.hpp | 4 ++-- elfio/elfio_note.hpp | 6 +++--- elfio/elfio_relocation.hpp | 20 ++++++++++---------- elfio/elfio_section.hpp | 4 ++-- elfio/elfio_segment.hpp | 4 ++-- elfio/elfio_symbols.hpp | 4 ++-- elfio/elfio_utils.hpp | 12 ++++++------ 7 files changed, 27 insertions(+), 27 deletions(-) diff --git a/elfio/elfio_header.hpp b/elfio/elfio_header.hpp index e100394..2694a30 100644 --- a/elfio/elfio_header.hpp +++ b/elfio/elfio_header.hpp @@ -75,7 +75,7 @@ template class elf_header_impl : public elf_header { public: //------------------------------------------------------------------------------ - elf_header_impl( endianness_convertor* convertor, + elf_header_impl( endianness_convertor* convertor, unsigned char encoding, const address_translator* translator ) : convertor( convertor ), translator( translator ) @@ -144,7 +144,7 @@ template class elf_header_impl : public elf_header private: T header = {}; - endianness_convertor* convertor = nullptr; + endianness_convertor* convertor = nullptr; const address_translator* translator = nullptr; }; diff --git a/elfio/elfio_note.hpp b/elfio/elfio_note.hpp index 9b30759..760601a 100644 --- a/elfio/elfio_note.hpp +++ b/elfio/elfio_note.hpp @@ -132,9 +132,9 @@ class note_section_accessor_template void process_section() { const endianness_convertor& convertor = elf_file.get_convertor(); - const char* data = notes->get_data(); - Elf_Xword size = ( notes->*F_get_size )(); - Elf_Xword current = 0; + const char* data = notes->get_data(); + Elf_Xword size = ( notes->*F_get_size )(); + Elf_Xword current = 0; note_start_positions.clear(); diff --git a/elfio/elfio_relocation.hpp b/elfio/elfio_relocation.hpp index 5bd1847..5ac7f60 100644 --- a/elfio/elfio_relocation.hpp +++ b/elfio/elfio_relocation.hpp @@ -96,22 +96,22 @@ template class relocation_section_accessor_template if ( elf_file.get_class() == ELFCLASS32 ) { if ( SHT_REL == relocation_section->get_type() ) { - return generic_get_entry_rel( index, offset, symbol, type, - addend ); + return generic_get_entry_rel( index, offset, symbol, + type, addend ); } else if ( SHT_RELA == relocation_section->get_type() ) { - return generic_get_entry_rela( index, offset, symbol, type, - addend ); + return generic_get_entry_rela( + index, offset, symbol, type, addend ); } } else { if ( SHT_REL == relocation_section->get_type() ) { - return generic_get_entry_rel( index, offset, symbol, type, - addend ); + return generic_get_entry_rel( index, offset, symbol, + type, addend ); } else if ( SHT_RELA == relocation_section->get_type() ) { - return generic_get_entry_rela( index, offset, symbol, type, - addend ); + return generic_get_entry_rela( + index, offset, symbol, type, addend ); } } // Unknown relocation section type. @@ -327,7 +327,7 @@ template class relocation_section_accessor_template { const endianness_convertor& convertor = elf_file.get_convertor(); - if (relocation_section->get_entry_size() < sizeof( T ) ) { + if ( relocation_section->get_entry_size() < sizeof( T ) ) { return false; } const T* pEntry = reinterpret_cast( @@ -351,7 +351,7 @@ template class relocation_section_accessor_template { const endianness_convertor& convertor = elf_file.get_convertor(); - if (relocation_section->get_entry_size() < sizeof( T ) ) { + if ( relocation_section->get_entry_size() < sizeof( T ) ) { return false; } diff --git a/elfio/elfio_section.hpp b/elfio/elfio_section.hpp index 46e3312..f08b585 100644 --- a/elfio/elfio_section.hpp +++ b/elfio/elfio_section.hpp @@ -79,7 +79,7 @@ template class section_impl : public section { public: //------------------------------------------------------------------------------ - section_impl( const endianness_convertor* convertor, + section_impl( const endianness_convertor* convertor, const address_translator* translator, const std::shared_ptr& compression ) : convertor( convertor ), translator( translator ), @@ -366,7 +366,7 @@ template class section_impl : public section std::string name; mutable std::unique_ptr data; mutable Elf_Word data_size = 0; - const endianness_convertor* convertor = nullptr; + const endianness_convertor* convertor = nullptr; const address_translator* translator = nullptr; const std::shared_ptr compression = nullptr; bool is_address_set = false; diff --git a/elfio/elfio_segment.hpp b/elfio/elfio_segment.hpp index 5770277..402d461 100644 --- a/elfio/elfio_segment.hpp +++ b/elfio/elfio_segment.hpp @@ -77,7 +77,7 @@ template class segment_impl : public segment public: //------------------------------------------------------------------------------ segment_impl( const endianness_convertor* convertor, - const address_translator* translator ) + const address_translator* translator ) : convertor( convertor ), translator( translator ) { } @@ -254,7 +254,7 @@ template class segment_impl : public segment Elf_Half index = 0; mutable std::unique_ptr data; std::vector sections; - const endianness_convertor* convertor = nullptr; + const endianness_convertor* convertor = nullptr; const address_translator* translator = nullptr; size_t stream_size = 0; bool is_offset_set = false; diff --git a/elfio/elfio_symbols.hpp b/elfio/elfio_symbols.hpp index 8618af5..7a1654c 100644 --- a/elfio/elfio_symbols.hpp +++ b/elfio/elfio_symbols.hpp @@ -295,7 +295,7 @@ template class symbol_section_accessor_template Elf_Half& section_index, unsigned char& other ) const { - bool ret = false; + bool ret = false; const endianness_convertor& convertor = elf_file.get_convertor(); Elf_Word nbucket = *(const Elf_Word*)hash_section->get_data(); @@ -334,7 +334,7 @@ template class symbol_section_accessor_template Elf_Half& section_index, unsigned char& other ) const { - bool ret = false; + bool ret = false; const endianness_convertor& convertor = elf_file.get_convertor(); uint32_t nbuckets = *( (uint32_t*)hash_section->get_data() + 0 ); diff --git a/elfio/elfio_utils.hpp b/elfio/elfio_utils.hpp index 2162c9e..69d96a9 100644 --- a/elfio/elfio_utils.hpp +++ b/elfio/elfio_utils.hpp @@ -284,10 +284,10 @@ class compression_interface * @returns a smart pointer to the decompressed data. */ virtual std::unique_ptr - inflate( const char* data, + inflate( const char* data, const endianness_convertor* convertor, - Elf_Xword compressed_size, - Elf_Xword& uncompressed_size ) const = 0; + Elf_Xword compressed_size, + Elf_Xword& uncompressed_size ) const = 0; /** * compresses a section @@ -299,10 +299,10 @@ class compression_interface * @returns a smart pointer to the compressed data. */ virtual std::unique_ptr - deflate( const char* data, + deflate( const char* data, const endianness_convertor* convertor, - Elf_Xword decompressed_size, - Elf_Xword& compressed_size ) const = 0; + Elf_Xword decompressed_size, + Elf_Xword& compressed_size ) const = 0; }; } // namespace ELFIO