summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/structured_table_formats.cpp
diff options
context:
space:
mode:
authors-berdnikov <[email protected]>2026-01-27 14:50:11 +0300
committers-berdnikov <[email protected]>2026-01-27 15:11:28 +0300
commitdedf25a083d0d18ea64dc3cc6eeca17c4d4919f3 (patch)
tree454f581a90ced21ead099ad6f5277e51a024e873 /yt/cpp/mapreduce/client/structured_table_formats.cpp
parent6285361944fe4fc46dd8ab44b5126534aa23d0bc (diff)
Normalize `operator()` spelling in YT
As of the date of this PR, there are 4 different ways to spell parenthesis operator in YT * `operator()(args...)` - 505 occasions * `operator() (args...)` - 151 occasions * `operator () (args...)` - 65 occasions * `operator ()(args...)` - 6 occasions As is apparent from this statistics, the first way is the most popular by far (69% of all matches). Furthermore, it is the most consistent with YT style guide <https://nda.ya.ru/t/YOfm_T4z7Syke2>. commit_hash:f9f2f2a6822e88d6aba6777210a00d08c2911bc5
Diffstat (limited to 'yt/cpp/mapreduce/client/structured_table_formats.cpp')
-rw-r--r--yt/cpp/mapreduce/client/structured_table_formats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/client/structured_table_formats.cpp b/yt/cpp/mapreduce/client/structured_table_formats.cpp
index ea511398cc9..4f174f3d250 100644
--- a/yt/cpp/mapreduce/client/structured_table_formats.cpp
+++ b/yt/cpp/mapreduce/client/structured_table_formats.cpp
@@ -315,7 +315,7 @@ TString GetAddIOMethodName(EIODirection direction)
struct TFormatBuilder::TFormatSwitcher
{
template <typename T>
- auto operator() (const T& /*t*/) {
+ auto operator()(const T& /*t*/) {
if constexpr (std::is_same_v<T, TTNodeStructuredRowStream>) {
return &TFormatBuilder::CreateNodeFormat;
} else if constexpr (std::is_same_v<T, TTYaMRRowStructuredRowStream>) {
@@ -570,7 +570,7 @@ std::pair<TFormat, TMaybe<TSmallJobFile>> TFormatBuilder::CreateProtobufFormat(
struct TGetTableSchemaImpl
{
template <typename T>
- TMaybe<TTableSchema> operator() (const T& description) {
+ TMaybe<TTableSchema> operator()(const T& description) {
if constexpr (std::is_same_v<T, TUnspecifiedTableStructure>) {
return Nothing();
} else if constexpr (std::is_same_v<T, TProtobufTableStructure>) {