diff options
author | Konstantin Khlebnikov <khlebnikov@tracto.ai> | 2024-10-18 10:43:46 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-10-18 10:57:52 +0300 |
commit | 9c17f2c15e5697b9ec4c5df840d728c89c9399e0 (patch) | |
tree | 7b28ed651ec1b3a138a38677863ac7ac198e031c | |
parent | ba777c7e02eaa66c9eaec1c16085e641360c1690 (diff) | |
download | ydb-9c17f2c15e5697b9ec4c5df840d728c89c9399e0.tar.gz |
Couple fixes for clangd language server
- yt/client: include async_stream.h in file_reader.h
NApi::IFileReader needs NConcurrency::IAsyncZeroCopyInputStream.
- Declare yt/yt/client/api/rpc_proxy/protocol_version_variables.h using CONFIGURE_FILE
Otherwise resulting file does not materialize after:
ya make --build-all --force-build-depends --replace-result --add-result=.h yt/yt/client/
Proper source file generation is required at least for making clangd happy.
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/894
commit_hash:b27f7963bc113543c0ac3842f78636be4f33416f
-rw-r--r-- | yt/yt/client/api/file_reader.h | 1 | ||||
-rw-r--r-- | yt/yt/client/ya.make | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/yt/yt/client/api/file_reader.h b/yt/yt/client/api/file_reader.h index bf4855fef3..c735e9aadc 100644 --- a/yt/yt/client/api/file_reader.h +++ b/yt/yt/client/api/file_reader.h @@ -6,6 +6,7 @@ #include <yt/yt/client/object_client/public.h> #include <yt/yt/core/concurrency/public.h> +#include <yt/yt/core/concurrency/async_stream.h> namespace NYT::NApi { diff --git a/yt/yt/client/ya.make b/yt/yt/client/ya.make index a09ba33382..86f928a734 100644 --- a/yt/yt/client/ya.make +++ b/yt/yt/client/ya.make @@ -198,6 +198,11 @@ SRCS( kafka/requests.cpp ) +CONFIGURE_FILE( + api/rpc_proxy/protocol_version_variables.h.in + api/rpc_proxy/protocol_version_variables.h +) + SRCS( ${YT_SRCS} yt/yt/client/api/rpc_proxy/protocol_version_variables.h.in |