aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2023-06-08 20:05:16 +0300
committerbulatman <bulatman@yandex-team.com>2023-06-08 20:05:16 +0300
commitdf6af3ee4741c667cf0c449696f768186bdc5752 (patch)
tree21ad8fed13c87e0ebec4bb5456f667a79d11c745 /library/cpp
parent8642bc755ab5b51752619694224388b2d247c737 (diff)
downloadydb-df6af3ee4741c667cf0c449696f768186bdc5752.tar.gz
Require semicolon after saveload macroses
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/accurate_accumulate/accurate_accumulate.h2
-rw-r--r--library/cpp/binsaver/bin_saver.h9
-rw-r--r--library/cpp/netliba/v6/ib_collective.h4
3 files changed, 8 insertions, 7 deletions
diff --git a/library/cpp/accurate_accumulate/accurate_accumulate.h b/library/cpp/accurate_accumulate/accurate_accumulate.h
index dacced17e9e..3a3d4009e53 100644
--- a/library/cpp/accurate_accumulate/accurate_accumulate.h
+++ b/library/cpp/accurate_accumulate/accurate_accumulate.h
@@ -83,7 +83,7 @@ public:
return *this = TValueType(*this) / TValueType(x);
}
- Y_SAVELOAD_DEFINE(Sum_, Compensation_)
+ Y_SAVELOAD_DEFINE(Sum_, Compensation_);
private:
TValueType Sum_;
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h
index 412424889f3..117ee0fd785 100644
--- a/library/cpp/binsaver/bin_saver.h
+++ b/library/cpp/binsaver/bin_saver.h
@@ -14,6 +14,7 @@
#include <util/generic/ylimits.h>
#include <util/memory/blob.h>
#include <util/digest/murmur.h>
+#include <util/system/compiler.h>
#include <array>
#include <bitset>
@@ -623,24 +624,24 @@ struct TRegisterSaveLoadType {
int operator&(IBinSaver& f) { \
f.AddMulti(__VA_ARGS__); \
return 0; \
- }
+ } Y_SEMICOLON_GUARD
#define SAVELOAD_OVERRIDE_WITHOUT_BASE(...) \
int operator&(IBinSaver& f) override { \
f.AddMulti(__VA_ARGS__); \
return 0; \
- }
+ } Y_SEMICOLON_GUARD
#define SAVELOAD_OVERRIDE(base, ...) \
int operator&(IBinSaver& f) override { \
base::operator&(f); \
f.AddMulti(__VA_ARGS__); \
return 0; \
- }
+ } Y_SEMICOLON_GUARD
#define SAVELOAD_BASE(...) \
int operator&(IBinSaver& f) { \
TBase::operator&(f); \
f.AddMulti(__VA_ARGS__); \
return 0; \
- }
+ } Y_SEMICOLON_GUARD
diff --git a/library/cpp/netliba/v6/ib_collective.h b/library/cpp/netliba/v6/ib_collective.h
index 48ffd29b340..2ce790e9605 100644
--- a/library/cpp/netliba/v6/ib_collective.h
+++ b/library/cpp/netliba/v6/ib_collective.h
@@ -6,7 +6,7 @@ namespace NNetliba {
struct TCollectiveInit {
int Size, Rank;
- SAVELOAD(Size, Rank)
+ SAVELOAD(Size, Rank);
};
struct TCollectiveLinkSet {
@@ -17,7 +17,7 @@ namespace NNetliba {
TVector<TVector<int>> HostGroup; // HostGroup[0] - switchId, HostGroup[1] - hostId within the switch
TVector<TLinkInfo> Links;
- SAVELOAD(Hosts, HostGroup, Links)
+ SAVELOAD(Hosts, HostGroup, Links);
};
struct IAllDataSync: public TThrRefBase {