aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2023-06-24 00:07:56 +0300
committerbulatman <bulatman@yandex-team.com>2023-06-24 00:07:56 +0300
commitc203a40b3ad69fa879519c38e45c641cb2eaee84 (patch)
treeca5d8d612fdc0348c9135386b1dfc142f9f5689e /util/system
parent234fdc45c2d3c6de987f600acc75563093420730 (diff)
downloadydb-c203a40b3ad69fa879519c38e45c641cb2eaee84.tar.gz
Require semicolon after Y_DECLARE*_FLAGS
Diffstat (limited to 'util/system')
-rw-r--r--util/system/file.h4
-rw-r--r--util/system/filemap.h4
-rw-r--r--util/system/fs.h4
-rw-r--r--util/system/mlock.h4
-rw-r--r--util/system/protect.h4
5 files changed, 10 insertions, 10 deletions
diff --git a/util/system/file.h b/util/system/file.h
index 9502e159b6f..bb42bc7697e 100644
--- a/util/system/file.h
+++ b/util/system/file.h
@@ -49,8 +49,8 @@ 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);
diff --git a/util/system/filemap.h b/util/system/filemap.h
index f66b70c96c3..933d169adb7 100644
--- a/util/system/filemap.h
+++ b/util/system/filemap.h
@@ -58,7 +58,7 @@ struct TMemoryMapCommon {
oPrecharge = 16,
oPopulate = 32, // Populate page table entries (see mmap's MAP_POPULATE)
};
- Y_DECLARE_FLAGS(EOpenMode, EOpenModeFlag)
+ Y_DECLARE_FLAGS(EOpenMode, EOpenModeFlag);
/**
* Name that will be printed in exceptions if not specified.
@@ -66,7 +66,7 @@ struct TMemoryMapCommon {
*/
static const TString& UnknownFileName();
};
-Y_DECLARE_OPERATORS_FOR_FLAGS(TMemoryMapCommon::EOpenMode)
+Y_DECLARE_OPERATORS_FOR_FLAGS(TMemoryMapCommon::EOpenMode);
class TMemoryMap: public TMemoryMapCommon {
public:
diff --git a/util/system/fs.h b/util/system/fs.h
index 4c1951b2502..a28a6d84fb9 100644
--- a/util/system/fs.h
+++ b/util/system/fs.h
@@ -21,7 +21,7 @@ namespace NFs {
FP_NONSECRET_FILE = 0744,
};
- Y_DECLARE_FLAGS(EFilePermissions, EFilePermission)
+ Y_DECLARE_FLAGS(EFilePermissions, EFilePermission);
/// Remove a file or empty directory
///
@@ -154,4 +154,4 @@ namespace NFs {
}
}
-Y_DECLARE_OPERATORS_FOR_FLAGS(NFs::EFilePermissions)
+Y_DECLARE_OPERATORS_FOR_FLAGS(NFs::EFilePermissions);
diff --git a/util/system/mlock.h b/util/system/mlock.h
index f021c0fe670..41a9e4457e0 100644
--- a/util/system/mlock.h
+++ b/util/system/mlock.h
@@ -23,8 +23,8 @@ enum ELockAllMemoryFlag {
/** Since Linux 4.4, with LockCurrentMemory or LockFutureMemory or both, lock only pages that are or once they are present in memory. */
LockMemoryOnFault = 4,
};
-Y_DECLARE_FLAGS(ELockAllMemoryFlags, ELockAllMemoryFlag)
-Y_DECLARE_OPERATORS_FOR_FLAGS(ELockAllMemoryFlags)
+Y_DECLARE_FLAGS(ELockAllMemoryFlags, ELockAllMemoryFlag);
+Y_DECLARE_OPERATORS_FOR_FLAGS(ELockAllMemoryFlags);
/**
* Performs provided locking operation.
diff --git a/util/system/protect.h b/util/system/protect.h
index 26714f3e928..16859a2cc40 100644
--- a/util/system/protect.h
+++ b/util/system/protect.h
@@ -11,8 +11,8 @@ enum EProtectMemoryMode {
PM_EXEC = 0x04 // execute access allowed
};
-Y_DECLARE_FLAGS(EProtectMemory, EProtectMemoryMode)
-Y_DECLARE_OPERATORS_FOR_FLAGS(EProtectMemory)
+Y_DECLARE_FLAGS(EProtectMemory, EProtectMemoryMode);
+Y_DECLARE_OPERATORS_FOR_FLAGS(EProtectMemory);
/**
* Set protection mode on memory block