diff options
author | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
commit | 22f8ae0e3f5d68b92aecccdf96c1d841a0334311 (patch) | |
tree | bffa27765faf54126ad44bcafa89fadecb7a73d7 /tools/event2cpp/proto_events.h | |
parent | 332b99e2173f0425444abb759eebcb2fafaa9209 (diff) | |
download | ydb-22f8ae0e3f5d68b92aecccdf96c1d841a0334311.tar.gz |
validate canons without yatest_common
Diffstat (limited to 'tools/event2cpp/proto_events.h')
-rw-r--r-- | tools/event2cpp/proto_events.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/event2cpp/proto_events.h b/tools/event2cpp/proto_events.h new file mode 100644 index 00000000000..628b4856af8 --- /dev/null +++ b/tools/event2cpp/proto_events.h @@ -0,0 +1,20 @@ +#pragma once + +#include <google/protobuf/compiler/plugin.h> +#include <google/protobuf/compiler/code_generator.h> +#include <google/protobuf/stubs/common.h> + +namespace NProtoBuf::NCompiler::NPlugins { + +class TProtoEventExtensionGenerator : public google::protobuf::compiler::CodeGenerator { + public: + TProtoEventExtensionGenerator() {} + ~TProtoEventExtensionGenerator() override {} + + bool Generate(const google::protobuf::FileDescriptor* file, + const TProtoStringType& parameter, + google::protobuf::compiler::OutputDirectory* output_directory, + TProtoStringType* error) const override; +}; + +} // namespace NProtoBuf::NCompiler::NPlugins |