Skip to content

Commit 9c17f2c

Browse files
koct9irobot-piglet
authored andcommitted
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: ytsaurus/ytsaurus#894 commit_hash:b27f7963bc113543c0ac3842f78636be4f33416f
1 parent ba777c7 commit 9c17f2c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

yt/yt/client/api/file_reader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <yt/yt/client/object_client/public.h>
77

88
#include <yt/yt/core/concurrency/public.h>
9+
#include <yt/yt/core/concurrency/async_stream.h>
910

1011
namespace NYT::NApi {
1112

yt/yt/client/ya.make

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ SRCS(
198198
kafka/requests.cpp
199199
)
200200

201+
CONFIGURE_FILE(
202+
api/rpc_proxy/protocol_version_variables.h.in
203+
api/rpc_proxy/protocol_version_variables.h
204+
)
205+
201206
SRCS(
202207
${YT_SRCS}
203208
yt/yt/client/api/rpc_proxy/protocol_version_variables.h.in

0 commit comments

Comments
 (0)