aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.h
blob: c0dc1df119d486ea42e8272d33d6bcc8d2e8f371 (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