blob: 628b4856af86a6f592f823223a2ede662beca0a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|