diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-11-15 10:14:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 10:14:36 -0800 |
commit | cb113bc8ccbf4357d4a3a43c8d1592d9f40bd70d (patch) | |
tree | 2275cab3e510d488354e341346b30928d142896b /upbc/generator.h | |
parent | d4e78f9fdff9ad14a0e8e3ad5d7d8379ee2124ef (diff) | |
parent | 9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3 (diff) |
Merge pull request #134 from haberman/upbc-cpp
Added upb compiler written in C++ as a normal protoc plugin.
Diffstat (limited to 'upbc/generator.h')
-rw-r--r-- | upbc/generator.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/upbc/generator.h b/upbc/generator.h new file mode 100644 index 0000000..ed6cedc --- /dev/null +++ b/upbc/generator.h @@ -0,0 +1,12 @@ + +#ifndef UPBC_GENERATOR_H_ +#define UPBC_GENERATOR_H_ + +#include <memory> +#include <google/protobuf/compiler/code_generator.h> + +namespace upbc { +std::unique_ptr<google::protobuf::compiler::CodeGenerator> GetGenerator(); +} + +#endif // UPBC_GENERATOR_H_ |