aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /tools
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'tools')
-rw-r--r--tools/archiver/main.cpp12
-rw-r--r--tools/fix_elf/patch.h36
2 files changed, 24 insertions, 24 deletions
diff --git a/tools/archiver/main.cpp b/tools/archiver/main.cpp
index 6cda54c1ea..d883638492 100644
--- a/tools/archiver/main.cpp
+++ b/tools/archiver/main.cpp
@@ -58,10 +58,10 @@ namespace {
{
}
- ~THexOutput() override {
+ ~THexOutput() override {
}
- inline IOutputStream* Slave() const noexcept {
+ inline IOutputStream* Slave() const noexcept {
return Slave_;
}
@@ -125,7 +125,7 @@ namespace {
*Out_ << Base_ << ":\n";
}
- ~TYasmOutput() override {
+ ~TYasmOutput() override {
}
void DoFinish() override {
@@ -170,7 +170,7 @@ namespace {
*Slave() << "static_assert(sizeof(unsigned int) == 4, \"ups, unsupported platform\");\n\nextern \"C\" {\nextern const unsigned char " << B << "[] = {\n";
}
- ~TCOutput() override {
+ ~TCOutput() override {
}
void DoFinish() override {
@@ -188,7 +188,7 @@ namespace {
*O << "static_assert(sizeof(unsigned int) == 4, \"ups, unsupported platform\");\n\nextern \"C\" {\nextern const unsigned char " << B << "[] = \n";
}
- ~TCStringOutput() override {
+ ~TCStringOutput() override {
}
void DoWrite(const void* data, size_t len) override {
@@ -298,7 +298,7 @@ static inline TAutoPtr<IOutputStream> OpenOutput(const TString& url) {
}
}
-static inline bool IsDelim(char ch) noexcept {
+static inline bool IsDelim(char ch) noexcept {
return ch == '/' || ch == '\\';
}
diff --git a/tools/fix_elf/patch.h b/tools/fix_elf/patch.h
index c3dcd24224..1ecb5b13c9 100644
--- a/tools/fix_elf/patch.h
+++ b/tools/fix_elf/patch.h
@@ -28,11 +28,11 @@ public:
}
}
- Elf64_Ehdr* GetHeader() const noexcept {
+ Elf64_Ehdr* GetHeader() const noexcept {
return reinterpret_cast<Elf64_Ehdr*>(Begin);
}
- char* GetPtr(size_t offset = 0) const noexcept {
+ char* GetPtr(size_t offset = 0) const noexcept {
return Begin + offset;
}
@@ -52,7 +52,7 @@ public:
return r;
}
- size_t GetSectionCount() const noexcept {
+ size_t GetSectionCount() const noexcept {
size_t count = GetHeader()->e_shnum;
if (count == 0) {
count = GetSection(0)->sh_size;
@@ -61,15 +61,15 @@ public:
return count;
}
- Elf64_Shdr* GetSectionBegin() const noexcept {
+ Elf64_Shdr* GetSectionBegin() const noexcept {
return reinterpret_cast<Elf64_Shdr*>(Begin + GetHeader()->e_shoff);
}
- Elf64_Shdr* GetSectionEnd() const noexcept {
+ Elf64_Shdr* GetSectionEnd() const noexcept {
return reinterpret_cast<Elf64_Shdr*>(Begin + GetHeader()->e_shoff) + GetSectionCount();
}
- Elf64_Shdr* GetSection(size_t i) const noexcept {
+ Elf64_Shdr* GetSection(size_t i) const noexcept {
return GetSectionBegin() + i;
}
@@ -94,36 +94,36 @@ public:
{
}
- bool IsNull() const noexcept {
+ bool IsNull() const noexcept {
return !This;
}
- char* GetPtr(size_t offset = 0) const noexcept {
+ char* GetPtr(size_t offset = 0) const noexcept {
return Elf->GetPtr(This->sh_offset) + offset;
}
- TStringBuf GetStr(size_t offset) const noexcept {
+ TStringBuf GetStr(size_t offset) const noexcept {
return GetPtr(offset);
}
- TStringBuf GetName() const noexcept {
+ TStringBuf GetName() const noexcept {
return TSection{Elf, Elf->GetSectionsNameSection()}.GetPtr(This->sh_name);
}
- size_t GetLink() const noexcept {
+ size_t GetLink() const noexcept {
return This->sh_link;
}
- size_t GetSize() const noexcept {
+ size_t GetSize() const noexcept {
return This->sh_size;
}
- size_t GetEntryCount() const noexcept {
+ size_t GetEntryCount() const noexcept {
return GetSize() / This->sh_entsize;
}
template<typename TTo = char>
- TTo* GetEntry(size_t i) const noexcept {
+ TTo* GetEntry(size_t i) const noexcept {
return reinterpret_cast<TTo*>(GetPtr(i * This->sh_entsize));
}
@@ -139,7 +139,7 @@ public:
{
}
- Elf64_Verneed* GetFirstVerneed() const noexcept {
+ Elf64_Verneed* GetFirstVerneed() const noexcept {
if (!GetSize()) {
return nullptr;
}
@@ -147,7 +147,7 @@ public:
return reinterpret_cast<Elf64_Verneed*>(GetPtr());
}
- Elf64_Verneed* GetNextVerneed(Elf64_Verneed* v) const noexcept {
+ Elf64_Verneed* GetNextVerneed(Elf64_Verneed* v) const noexcept {
if (!v->vn_next) {
return nullptr;
}
@@ -155,7 +155,7 @@ public:
return Offset<Elf64_Verneed*>(v, v->vn_next);
}
- Elf64_Vernaux* GetFirstVernaux(Elf64_Verneed* v) const noexcept {
+ Elf64_Vernaux* GetFirstVernaux(Elf64_Verneed* v) const noexcept {
if (!v->vn_cnt) {
return nullptr;
}
@@ -163,7 +163,7 @@ public:
return Offset<Elf64_Vernaux*>(v, v->vn_aux);
}
- Elf64_Vernaux* GetNextVernaux(Elf64_Vernaux* v) const noexcept {
+ Elf64_Vernaux* GetNextVernaux(Elf64_Vernaux* v) const noexcept {
if (!v->vna_next) {
return nullptr;
}