summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMax Burke <max@urbanlogiq.com>2023-04-25 21:38:16 -0700
committerGitHub <noreply@github.com>2023-04-25 21:38:16 -0700
commit56ecc1f548f4bb4143b7a01db9b01d331e468977 (patch)
treebeb8a63d614f1ac27b97e7b80cc6145468874d15 /include
parent3fda20d7c7fe1f8006210bddae8cb55bc7a74c3b (diff)
downloadflatbuffers-56ecc1f548f4bb4143b7a01db9b01d331e468977.tar.gz
flatbuffers-56ecc1f548f4bb4143b7a01db9b01d331e468977.tar.bz2
flatbuffers-56ecc1f548f4bb4143b7a01db9b01d331e468977.zip
Optionally generate type prefixes and suffixes for python code (#7857)
* optionally generate type prefixes and suffixes for python code * fix codegen error when qualified name is empty * generated code updated
Diffstat (limited to 'include')
-rw-r--r--include/flatbuffers/idl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h
index 8f08003d..bee67274 100644
--- a/include/flatbuffers/idl.h
+++ b/include/flatbuffers/idl.h
@@ -697,6 +697,7 @@ struct IDLOptions {
bool no_leak_private_annotations;
bool require_json_eof;
bool keep_proto_id;
+ bool python_no_type_prefix_suffix;
ProtoIdGapAction proto_id_gap_action;
// Possible options for the more general generator below.
@@ -806,6 +807,7 @@ struct IDLOptions {
no_leak_private_annotations(false),
require_json_eof(true),
keep_proto_id(false),
+ python_no_type_prefix_suffix(false),
proto_id_gap_action(ProtoIdGapAction::WARNING),
mini_reflect(IDLOptions::kNone),
require_explicit_ids(false),