(Optionally) add an additional suffix namespace to generated fbs files. (#5698)

This change allows for the generation of fbs files (from proto) that
don't contain name collisions with the protobuf generated C++ code,
allowing both the proto and fbs message types to be linked into the same binary.
This commit is contained in:
Michael Beardsworth
2020-01-06 10:00:59 -08:00
committed by Wouter van Oortmerssen
parent 35daaf83d3
commit 21b7061963
7 changed files with 190 additions and 0 deletions

View File

@@ -557,6 +557,7 @@ struct IDLOptions {
bool java_primitive_has_method;
std::vector<std::string> cpp_includes;
std::string cpp_std;
std::string proto_namespace_suffix;
// Possible options for the more general generator below.
enum Language {