blob: b428730edb3126a5142cd47213cc0e01b81310b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/plugin.h>
#include <google/protobuf/stubs/common.h>
namespace NProtobuf::NCompiler::NPlugins {
class TCppStyleGuideExtensionGenerator : public google::protobuf::compiler::CodeGenerator {
public:
bool Generate(const google::protobuf::FileDescriptor* file,
const TProtoStringType& parameter,
google::protobuf::compiler::OutputDirectory* output_directory,
TProtoStringType* error
) const override;
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};
} // namespace NProtobuf::NCompiler::NPlugins
|