aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorbreakneck <breakneck@yandex-team.ru>2022-02-10 16:47:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:58 +0300
commite2021f9a0e54d13b7c48796318b13b66dc625e74 (patch)
tree5aed1691033eaf399ab80a10a137238922035fa8 /util/system
parent83602b1b564b92a80a1526d113fa2846661dd10e (diff)
downloadydb-e2021f9a0e54d13b7c48796318b13b66dc625e74.tar.gz
Restoring authorship annotation for <breakneck@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/compiler.h4
-rw-r--r--util/system/defaults.h2
-rw-r--r--util/system/file.cpp4
-rw-r--r--util/system/file.h10
4 files changed, 10 insertions, 10 deletions
diff --git a/util/system/compiler.h b/util/system/compiler.h
index b373edcc46..02700b1659 100644
--- a/util/system/compiler.h
+++ b/util/system/compiler.h
@@ -84,12 +84,12 @@
#endif
/**
- * @def Y_FORCE_INLINE
+ * @def Y_FORCE_INLINE
*
* Macro to use in place of 'inline' in function declaration/definition to force
* it to be inlined.
*/
-#if !defined(Y_FORCE_INLINE)
+#if !defined(Y_FORCE_INLINE)
#if defined(CLANG_COVERAGE)
#/* excessive __always_inline__ might significantly slow down compilation of an instrumented unit */
#define Y_FORCE_INLINE inline
diff --git a/util/system/defaults.h b/util/system/defaults.h
index dcd7abea38..5a800c288f 100644
--- a/util/system/defaults.h
+++ b/util/system/defaults.h
@@ -141,7 +141,7 @@ constexpr bool Y_IS_DEBUG_BUILD = true;
#define Y_CAT_I(X, Y) Y_CAT_II(X, Y)
#define Y_CAT_II(X, Y) X##Y
-#define Y_STRINGIZE(X) UTIL_PRIVATE_STRINGIZE_AUX(X)
+#define Y_STRINGIZE(X) UTIL_PRIVATE_STRINGIZE_AUX(X)
#define UTIL_PRIVATE_STRINGIZE_AUX(X) #X
#if defined(__COUNTER__)
diff --git a/util/system/file.cpp b/util/system/file.cpp
index 4a261d020c..018878bb17 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -65,7 +65,7 @@ static bool IsStupidFlagCombination(EOpenMode oMode) {
TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
ui32 fcMode = 0;
- EOpenMode createMode = oMode & MaskCreation;
+ EOpenMode createMode = oMode & MaskCreation;
Y_VERIFY(!IsStupidFlagCombination(oMode), "oMode %d makes no sense", static_cast<int>(oMode));
if (!(oMode & MaskRW)) {
oMode |= RdWr;
@@ -854,7 +854,7 @@ public:
, FileName_(fName)
{
if (!Handle_.IsOpen()) {
- ythrow TFileError() << "can't open " << fName.Quote() << " with mode " << DecodeOpenMode(oMode) << " (" << Hex(oMode.ToBaseType()) << ")";
+ ythrow TFileError() << "can't open " << fName.Quote() << " with mode " << DecodeOpenMode(oMode) << " (" << Hex(oMode.ToBaseType()) << ")";
}
}
diff --git a/util/system/file.h b/util/system/file.h
index 9502e159b6..268051cd8a 100644
--- a/util/system/file.h
+++ b/util/system/file.h
@@ -3,13 +3,13 @@
#include "fhandle.h"
#include "flock.h"
-#include <util/generic/flags.h>
+#include <util/generic/flags.h>
#include <util/generic/ptr.h>
#include <util/generic/noncopyable.h>
#include <cstdio>
-enum EOpenModeFlag {
+enum EOpenModeFlag {
OpenExisting = 0, // Opens a file. It fails if the file does not exist.
TruncExisting = 1, // Opens a file and truncates it to zero size. It fails if the file does not exist.
OpenAlways = 2, // Opens a file, always. If a file does not exist, it creates a file.
@@ -49,9 +49,9 @@ enum EOpenModeFlag {
AMask = 0x0FFF0000,
};
-Y_DECLARE_FLAGS(EOpenMode, EOpenModeFlag)
-Y_DECLARE_OPERATORS_FOR_FLAGS(EOpenMode)
-
+Y_DECLARE_FLAGS(EOpenMode, EOpenModeFlag)
+Y_DECLARE_OPERATORS_FOR_FLAGS(EOpenMode)
+
TString DecodeOpenMode(ui32 openMode);
enum SeekDir {