/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.h
20 строк
667 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#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