aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.ru>2022-02-10 16:45:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:37 +0300
commite5437feb4ac2d2dc044e1090b9312dde5ef197e0 (patch)
treef5a238c69dd20a1fa2092127a31b8aff25020f7d /util/system
parentf4945d0a44b8770f0801de3056aa41639b0b7bd2 (diff)
downloadydb-e5437feb4ac2d2dc044e1090b9312dde5ef197e0.tar.gz
Restoring authorship annotation for <iaz1607@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/compat.cpp4
-rw-r--r--util/system/compiler_ut.cpp8
-rw-r--r--util/system/event_ut.cpp12
-rw-r--r--util/system/file.cpp2
-rw-r--r--util/system/mktemp_system.cpp2
-rw-r--r--util/system/shellcommand_ut.cpp18
-rw-r--r--util/system/types.cpp2
7 files changed, 24 insertions, 24 deletions
diff --git a/util/system/compat.cpp b/util/system/compat.cpp
index 18fbfa296a..0c4bf23e9f 100644
--- a/util/system/compat.cpp
+++ b/util/system/compat.cpp
@@ -9,8 +9,8 @@
#include <cstdarg>
#include <cstdlib>
-#include <util/generic/string.h>
-
+#include <util/generic/string.h>
+
#ifdef _win_
#include "winint.h"
#include <io.h>
diff --git a/util/system/compiler_ut.cpp b/util/system/compiler_ut.cpp
index f93b1c0850..317376f984 100644
--- a/util/system/compiler_ut.cpp
+++ b/util/system/compiler_ut.cpp
@@ -24,14 +24,14 @@ Y_UNIT_TEST_SUITE(TCompilerTest) {
// define function with unused named parameter
// and there will be no warning for this
- int Foo(int a) {
+ int Foo(int a) {
return 0;
}
Y_PRAGMA_DIAGNOSTIC_POP
Y_UNIT_TEST(TestPragmaNoUnusedParameter) {
- UNIT_ASSERT_EQUAL(Foo(1), 0);
+ UNIT_ASSERT_EQUAL(Foo(1), 0);
}
Y_UNIT_TEST(TestHaveInt128) {
@@ -56,7 +56,7 @@ Y_UNIT_TEST_SUITE(TCompilerTest) {
}
// define deprecated function
- [[deprecated]] void Bar() {
+ [[deprecated]] void Bar() {
return;
}
@@ -65,7 +65,7 @@ Y_UNIT_TEST_SUITE(TCompilerTest) {
Y_PRAGMA_NO_DEPRECATED
// will be compiled without errors
- Bar();
+ Bar();
Y_PRAGMA_DIAGNOSTIC_POP
}
diff --git a/util/system/event_ut.cpp b/util/system/event_ut.cpp
index 2506cb7a91..ad7bfcb7da 100644
--- a/util/system/event_ut.cpp
+++ b/util/system/event_ut.cpp
@@ -50,16 +50,16 @@ namespace {
class TSignalTask: public IObjectInQueue {
private:
- TManualEvent& Ev_;
+ TManualEvent& Ev_;
public:
- TSignalTask(TManualEvent& ev)
- : Ev_(ev)
+ TSignalTask(TManualEvent& ev)
+ : Ev_(ev)
{
}
void Process(void*) override {
- Ev_.Signal();
+ Ev_.Signal();
}
};
@@ -103,7 +103,7 @@ Y_UNIT_TEST_SUITE(EventTest) {
queue.Start(limit);
TVector<THolder<IObjectInQueue>> tasks;
for (size_t i = 0; i < limit; ++i) {
- tasks.emplace_back(MakeHolder<TSignalTask>(event[i]));
+ tasks.emplace_back(MakeHolder<TSignalTask>(event[i]));
UNIT_ASSERT(queue.Add(tasks.back().Get()));
}
for (size_t i = limit; i != 0; --i) {
@@ -118,7 +118,7 @@ Y_UNIT_TEST_SUITE(EventTest) {
TVector<THolder<IObjectInQueue>> tasks;
for (size_t i = 0; i < 1000; ++i) {
auto owner = MakeHolder<TOwnerTask>();
- tasks.emplace_back(MakeHolder<TSignalTask>(*owner->Ev));
+ tasks.emplace_back(MakeHolder<TSignalTask>(*owner->Ev));
tasks.emplace_back(std::move(owner));
}
diff --git a/util/system/file.cpp b/util/system/file.cpp
index 4a261d020c..9c52ee1d83 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -3,7 +3,7 @@
#include "fstat.h"
#include "sysstat.h"
#include "align.h"
-#include "info.h"
+#include "info.h"
#include <array>
diff --git a/util/system/mktemp_system.cpp b/util/system/mktemp_system.cpp
index 32bea2987c..525f82ebee 100644
--- a/util/system/mktemp_system.cpp
+++ b/util/system/mktemp_system.cpp
@@ -165,7 +165,7 @@ GetTemp(char* path, int* doopen, int domkdir, int slen)
extern "C" int mkstemps(char* path, int slen) {
int fd;
- return (GetTemp(path, &fd, 0, slen) ? fd : -1);
+ return (GetTemp(path, &fd, 0, slen) ? fd : -1);
}
#if defined(_win_)
diff --git a/util/system/shellcommand_ut.cpp b/util/system/shellcommand_ut.cpp
index 9d849279d2..335d421e55 100644
--- a/util/system/shellcommand_ut.cpp
+++ b/util/system/shellcommand_ut.cpp
@@ -30,33 +30,33 @@ const size_t textSize = 20000;
class TGuardedStringStream: public IInputStream, public IOutputStream {
public:
TGuardedStringStream() {
- Stream_.Reserve(100);
+ Stream_.Reserve(100);
}
TString Str() const {
- with_lock (Lock_) {
- return Stream_.Str();
+ with_lock (Lock_) {
+ return Stream_.Str();
}
return TString(); // line for compiler
}
protected:
size_t DoRead(void* buf, size_t len) override {
- with_lock (Lock_) {
- return Stream_.Read(buf, len);
+ with_lock (Lock_) {
+ return Stream_.Read(buf, len);
}
return 0; // line for compiler
}
void DoWrite(const void* buf, size_t len) override {
- with_lock (Lock_) {
- return Stream_.Write(buf, len);
+ with_lock (Lock_) {
+ return Stream_.Write(buf, len);
}
}
private:
- TAdaptiveLock Lock_;
- TStringStream Stream_;
+ TAdaptiveLock Lock_;
+ TStringStream Stream_;
};
Y_UNIT_TEST_SUITE(TShellQuoteTest) {
diff --git a/util/system/types.cpp b/util/system/types.cpp
index 11cc72aee3..ce676d1e69 100644
--- a/util/system/types.cpp
+++ b/util/system/types.cpp
@@ -1,7 +1,7 @@
#include "types.h"
#include <util/generic/typetraits.h>
-#include <util/generic/typelist.h>
+#include <util/generic/typelist.h>
static_assert(sizeof(ui8) == 1, "incorrect ui8 type");
static_assert(sizeof(ui16) == 2, "incorrect ui16 type");